前端代码
$.ajax({
url : "请求地址"
type : "post",
data: objs,//数据,这里使用的是Json格式进行传输
async : true,
cache : false,
dataType : "json",
timeout : 30000,
success : function(data) {
},
error : function(data) {
$('#msgs').html("异常");
}
});
后端代码
public void serverFace(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
//具体代码
}