$.ajax({ url : "", 请求的Url
data : { }, 参数Json格式
dataType : "json", 请求的返回类型 这里为json
type : "post", 提交方式
cache : false, 是否异步提交
success : function(result)
{
alert(\'回调函数\');
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert(\'错误处理\');
}
});