摘要: 原因是request.onreadystatechange = cb(request)直接把结果赋值给了onreadystatechange,等于没有了毁掉函数,当然什么都看不到了改进的方法是request.onreadystatechange = function(){cb(request)};var Ajax(function(){var request = falsefunction createRequest() { try { request = new XMLHttpRequest(); } catch (trymicrosoft) { //两种微软的XMLHttp... 阅读全文
posted @ 2014-02-22 16:12 ggaaooppeenngg 阅读(957) 评论(0) 推荐(0) 编辑