$.ajax get and post template

just for record

$.ajax({
type: "GET",
url: url,
data: {
param1: param1,
param2: param2
},
success: function (result) {

},
error: function (result) {

}
});

 

refer to http://www.w3school.com.cn/jquery/ajax_ajax.asp for more param.

posted @ 2018-11-01 16:26  bad_programmer  阅读(106)  评论(0编辑  收藏  举报