2016年7月28日

jQuery ajax() 方法

摘要: 实例 使用 AJAX 请求改变 <div> 元素的文本: $("button").click(function(){ $.ajax({ url:"demo_test.txt", success:function(result){ $("#div1").html(result); } }); }); 阅读全文

posted @ 2016-07-28 10:29 鬼鬼丫404 阅读(110) 评论(0) 推荐(0) 编辑

Ajax什么时候用同步请求?

摘要: http://bbs.csdn.net/topics/280028514/ 当向服务器发出请求时 如果不需要等待服务器返回信息再操作就用异步 否则用同步 阅读全文

posted @ 2016-07-28 10:28 鬼鬼丫404 阅读(115) 评论(0) 推荐(0) 编辑

导航