鍍金池/ 問答/HTML5  HTML/ ie11 xmlhttpreqeust 報錯

ie11 xmlhttpreqeust 報錯

各位 當(dāng)前 用 xmlhttprequest 對象請求服務(wù)器,在ie11報錯 內(nèi)容如下:
script7002:xmlhttprequest:網(wǎng)絡(luò)錯誤 0x2efd 由于錯線錯誤 00002efd 而導(dǎo)致此項操作無法完成。

以上是提示的錯誤。

代碼很簡單 就是 :
xml = new XMLHttpRequest()
xml.open(...)
xml.send()

求助解決

回答
編輯回答
冷眸

Ajax的contentType記得要加charset=utf-8,否則大概率會引發(fā)Ajax錯誤:SCRIPT7002: XMLHttpRequest: 網(wǎng)絡(luò)錯誤 0x2ef3, 由于出現(xiàn)錯誤 00002ef3 而導(dǎo)致此項操作無法完成.

來源: http://www.cnblogs.com/OpenCo...

2017年7月8日 06:46