This time I will bring you a summary of the debugging method of Vue's blank page under ie10. What are the precautions for debugging Vue's blank page under ie10? The following is a practical case, let's take a look.
Found the problem
A Vue I wrote a few days ago is blank under IE, and f12 displaysscript1003: expected :. So there is this article...
Solution process
Baidu and Google said that the last item of json is redundant Commas, such as{ a: 5, b: 4, // 最后一项不能有逗号 }
objects has a comma, which makes it incompatible under IE
{ a: 5, b: 4, // 这个逗号要删除 }
// ie下不支持这种语法 export default { bind() {} } // 必须在外面定义 function bind() {} 然后 export default { bind: bind } // 特别告诫,下面这种语法在ie中也是不支持的 export default { bind }
if(condition) { someArray.push({ a, b }) } else { anotherArray.push({ a, b }) }
The above is the detailed content of Summary of debugging methods for blank pages in Vue under ie10. For more information, please follow other related articles on the PHP Chinese website!