这是一个关于ajax的简单的例子,希望能给您带来方便,谢谢!!
js框架:mootools
//handle.js logic handle
function total(){
这是第一种请求方式:
//first method
var postArgs = $('totalForm').toQueryString();
new Ajax('result.jsp',{
postBody:postArgs,
update:'total'}
).request();
return false;
这是第二种请求方式:
//second method
$('totalForm').send({update:'total'});
return false;
}
其详细资料请看附件.