jquery 异步这么简单?

setInterval("freshClient()",10000);
//异步获取客户端
function freshClient()
{
$.post("info.do", {"method": "getClientAsync"}, function (ags) {

});

1、setInterval("freshClient()",10000); 十秒刷新一次freshClient() 方法

2、"info.do" 请求

3、 {"method": "getClientAsync"} 请求参数,多个用‘逗号’隔开

4、post 提交

就是这么简单

posted @ 2013-11-26 15:55  李岩-博客  阅读(143)  评论(0编辑  收藏  举报