es5中新加的方法Array.isArray是否是数值,低版本浏览器中可以这样修复if (!Array.isArray) { Array.isArray = function(arg) { return Object.prototype.toString.call(arg) === '[object Array]'; }; }
Powered by: 博客园 Copyright © 2025 绝交 Powered by .NET 9.0 on Kubernetes