技术栈

判断数组

儒雅的烤地瓜
7 个月前
javascript·instanceof·判断数组·数组方法·isarray·isprototypeof
JS | JS中判断数组的6种方法,你知道几个?目录1、通过 instanceof 运算符判断2、通过 constructor 构造函数属性判断3、通过 Object.prototype.toString.call() 方法判断