判断是否是数组
摘要:
1. Array.isArray() 1 Array.isArray([1, 2 ,3]) // true 2 Array.isArray('aa') //false 2. instanceof 1 [1, 2 ,3] instanceof Array //true 2 'aa' instanceo 阅读全文
posted @ 2023-09-04 09:57 樂馨 阅读(8) 评论(0) 推荐(0)
posted @ 2023-09-04 09:57 樂馨 阅读(8) 评论(0) 推荐(0)
posted @ 2023-09-04 09:48 樂馨 阅读(76) 评论(0) 推荐(0)