function methodName() {
var params = {
};
var url = '';
jQuery.ajax({
type: 'POST',
contentType: 'application/x-www-form-urlencoded',
url: url,
data: params,
dataType: 'json',
success: function (data) {
alert("成功啦");
},
error: function (data) {
alert("失败啦");
}
});
}