区分数组和对象的三种方法 区分数组和对象的三种方法:[].constructor //ƒ Array() { [native code] }var obj = {};obj.constructor//ƒ Object() { [native code] }[] instanceof Array //truevar obj = {};obj instanceof Array //false... web 2024-01-29 35 点赞 0 评论 53 浏览