本文介绍了AJAX - http.send(null)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 每次我使用http.send(null)完成AJAX帖子时都会收到此错误: 错误:未捕获的异常:[例外...组件返回失败 代码:0x80004005(NS_ERROR_FAILURE)[nsIXMLHttpRequest.send]" nsresult:" 0x80004005(NS_ERROR_FAILURE)" location:JS frame :: [file name here] :: getReplyWindow :: line 62"数据:没有] 是否有必要使用http.send(null)跟进最终的http.send? 谢谢, 迈克 I get this error everytime I finish an AJAX post with http.send(null): Error: uncaught exception: [Exception... "Component returned failurecode: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]"nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: [filename here] :: getReplyWindow :: line 62" data: no] Is it necessary to follow up the final http.send with http.send(null)? Thanks,Mike 推荐答案 试试这个: http.send(""); try this instead: http.send(""); 你不是任何意义。 XMLHTTPRequest :: send()只能在行中一次性地调用 。 PointedEars You are not making any sense. XMLHTTPRequest::send() can only be calledonce-in-a-row reliably.PointedEars 这篇关于AJAX - http.send(null)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-01 07:28