js数组操作

1、数组是否存在元素,是否存在key?

console.log(num.hasOwnProperty('c'));

 

posted @ 2018-12-14 15:42  liwuming  阅读(81)  评论(0编辑  收藏  举报