pagekit / vue-resource

The HTTP client for Vue.js
MIT License
10.08k stars 1.6k forks source link

Meizu MX4 cellphone andriod 4.4.2 vue-resource return error #577

Open lijiancheng opened 7 years ago

lijiancheng commented 7 years ago

when I use vue-resource in project. QA find in Meizu MX4 andriod 4.4.2, , the vue-resource return a error, I use window.onerror function to alert the error and the error line,

function handleErr(msg,url,l) { txt="There was an error on this page.\n\n" txt+="Error: " + msg + "\n" txt+="URL: " + url + "\n" txt+="Line: " + l + "\n\n" txt+="Click OK to continue.\n\n" alert(txt) }

return

 error   script error;
 url: 
  line 0 

I use jquery.ajax instead of this.$http.jsonp, it goes well;

lijiancheng commented 7 years ago

...... if you understand Chinese

在魅族手机MX4 安卓版本4.4.2 上, 使用vue-resource 会报错, 我用window.onerror的功能区检测报错,

只有

error script error; url: line 0

没有具体报错信息,

然后我使用了jquery.ajax代替之后 就完美运行了

kaneruan commented 7 years ago

I have the same problem with you. I do wechat development .However, this problem is caused by the failure of browser kernel upgrade.But I Use native ajax and it was perfect to run, and there was no other problem.

 (Linux; Android 6.0.1; SM-G5510 Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043024 Safari/537.36 MicroMessenger/6.5.4.1000 NetType/WIFI Language/zh_CN

Return status Equal 0 Who can help me?