摘要:
1、js判断对象是否包含某个(字段)属性 hasOwnProperty 方法 var obj = {name:'jack'}; obj.hasOwnProperty('name'); // --> true obj.hasOwnProperty('toString'); // --> false 阅读全文
posted @ 2021-07-14 16:59
凌波漫步~
阅读(30)
评论(0)
推荐(0)
摘要:
1、JS判断数组的5种方式 let arr = [] 1. instanceof arr instanceof Array 2. __proto__ arr.__proto__ Array.prototype 3. constructor arr.constructor Array 4. Objec 阅读全文
posted @ 2021-07-14 16:57
凌波漫步~
阅读(41)
评论(0)
推荐(0)