摘要: 1、不要使用Object.prototype.toString.call() 正常情况下: const arr = [1,2,3,4,5] const obj = {} console.log(Object.prototype.toString.call(arr))//[Object,Array] 阅读全文
posted @ 2023-09-20 13:47 菜鸟小何 阅读(104) 评论(0) 推荐(0) 编辑