摘要: XHR工厂基本实现var AjaxHandler = new Interface('AjaxHandler', ['request', 'createXHR']);var SimpleHandler = function(){};SimpleHandler.prototype = { request: function(method, url, callback, postVars){ var xhr = this.createXHR(); xhr.onreadystatechange = function(){ if(xhr.ready... 阅读全文
posted @ 2014-03-28 16:50 JChen___ 阅读(343) 评论(0) 推荐(0) 编辑