原因:Object.entries is not a function.在部分机型小程序上不支持
ES6 Object.entries 部分机型不支持问题
方法:添加Object.entries polyfill
Object.entries polyfill
if (!Object.entries)
Object.entries = function( obj ){
var ownProps = Object.keys( obj ),
i = ownProps.length,
resArray = new Array(i); // preallocate the Array
while (i--)
resArray[i] = [ownProps[i], obj[ownProps[i]]];
return resArray;
};