摘要:
原因是request.onreadystatechange = cb(request)直接把结果赋值给了onreadystatechange,等于没有了毁掉函数,当然什么都看不到了改进的方法是request.onreadystatechange = function(){cb(request)};var Ajax(function(){var request = falsefunction createRequest() { try { request = new XMLHttpRequest(); } catch (trymicrosoft) { //两种微软的XMLHttp... 阅读全文