在Edge
浏览器中使用扩展运算符处理对象数据,会报错Expected identifier, string or number
let obj = {age:18}
let a = {name:1,...obj }
//报错Expected identifier, string or number
//可以使用Object.assign来处理数据
a = Object.assign({name:1},obj )
在Edge
浏览器中使用扩展运算符处理对象数据,会报错Expected identifier, string or number
let obj = {age:18}
let a = {name:1,...obj }
//报错Expected identifier, string or number
//可以使用Object.assign来处理数据
a = Object.assign({name:1},obj )
本文标题:Edge浏览器报错Expected identifier, st
本文链接:https://www.haomeiwen.com/subject/csyduktx.html
网友评论