AJAX
$.ajax({ url: '带载入页面',
type: 'post/get', contentType: 'application/json;charset=utf-8', data: '{key:value}',//请求数据 success: function (data) { //载入成功时回调函数 alert(data); } });
$.get(
url: '带载入页面',
type: 'post/get',
contentType: 'application/json;charset=utf-8',
data: '{key:value}',
success: function (data) { //载入成功时回调函数
alert(data);
}
);
$.post(
url: '带载入页面',
type: 'post/get',
contentType: 'application/json;charset=utf-8',
data: '{key:value}',
success: function (data) { //载入成功时回调函数
alert(data);
}
);