【EasyClick】执行错误:TypeError: Cannot find function entries in object function Object() { [native code for Object.Object, arity=1] }解决方法
由于ec的js等级是es5,并不支持Object.entries
要自己补一下语法
把下面代码放插件开头
if (!Object.entries) {
Object.entries = function (obj) {
let ownProps = Object.keys(obj),
i = ownProps.length,
resArray = new Array(i) // preallocate the Array
while (i--) {
resArray = , obj]]
}
return resArray
}
}
页:
[1]