时间:2021-05-31 08:25:52 | 栏目:JavaScript代码 | 点击:次
实例如下:
function isArray(value) {
if (typeof Array.isArray === "function") {
return Array.isArray(value);
} else {
return Object.prototype.toString.call(value) === "[object Array]";
}
}