在JavaScript中如何检测天气的类型是数组还是对象?
这个问题在这里已经有了答案:
Array.isArray(arr)将返回true 。 Array.isArray(obj)将返回false 。
上一篇: In JavaScript how to detect weather the type is Array or Object?
这个问题在这里已经有了答案:
Array.isArray(arr)将返回true 。 Array.isArray(obj)将返回false 。
上一篇: In JavaScript how to detect weather the type is Array or Object?