1
2
3
4
5
6
7
8
9
10
11
12
13
|
$.ajax({
cache:
true
,
type:
"POST"
,
url:ajaxCallUrl,
data:$(
'#yourformid'
).serialize(),
// 你的formid
async:
false
,
error:
function
(request) {
alert(
"Connection error"
);
},
success:
function
(data) {
$(
"#commonLayout_appcreshi"
).parent().html(data);
}
});
|
如需要在后台处理 需要用到PHP的parse_str() 将查询的字符串解析到变量中 便可以使用了