In JavaScript how to detect weather the type is Array or Object?
This question already has an answer here:
Array.isArray(arr) will return true . Array.isArray(obj) will return false .
上一篇: 检查对象数组是否忽略所有其他
This question already has an answer here:
Array.isArray(arr) will return true . Array.isArray(obj) will return false .
上一篇: 检查对象数组是否忽略所有其他