会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
忆殇之痕
博客园
首页
新随笔
联系
管理
订阅
2013年3月25日
ajax长轮询实例
摘要: html页面:<script> $(function(){ function test(){ $url="xx.php"; comet=$.post($url,function(data){ if(data==null){ comet.abort(); //关闭之前的comet ajax请求 test(); //如果返回空则继续请求 return; } //$('#sub').append('<div>'+dat...
阅读全文
posted @ 2013-03-25 17:52 忆殇之痕
阅读(366)
评论(0)
推荐(0)
编辑
公告