chaojidan

导航

2015年1月4日 #

第三十五课:Ajax详解

摘要: 一个完整的Ajax请求:var xhr = new (self.XMLHttpRequest || ActiveXObject)("Microsoft.XMLHTTP"); //new XMLHttpRequest()传入参数不影响。xhr.onreadystatechange = functio... 阅读全文

posted @ 2015-01-04 19:16 chaojidan 阅读(895) 评论(0) 推荐(1) 编辑

第三十四课:jQuery Deferred详解2

摘要: 上一课主要分析了jQuery1.51版本的jQuery Deferred。在jQuery1.6中,jQuery Deferred添加了两个方法,always,pipe。always用来添加回调,无论成功还是失败,都会执行。pipe就是管道的意思,对回调使用瀑布模型,上一个回调的返回值供下一个会调使用... 阅读全文

posted @ 2015-01-04 11:37 chaojidan 阅读(355) 评论(0) 推荐(0) 编辑