Uncaught DOMException: Failed to execute 'send' on 'XMLHttpRequest': The object's state must be OPENED.?本地加载没出现问题,放到服务器包以上错误。服务器上的js代码是放在php结构中是不是open方法执行有什么权限问题???var xhr = new XMLHttpRequest(); xhr.open('GET','http://192.168.1.249:90/consult/upload/series/5/raw20170818164225/fixed_image.raw', true); xhr.responseType = 'arraybuffer'; xhr.onload = function (e) { //code... console.log("加载" + data.path + "成功") }; xhr.send();
添加回答
举报
0/150
提交
取消