会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
PromiseOne
博客园
首页
新随笔
联系
管理
订阅
2020年2月19日
es6判断数组是否包含某个元素
摘要: 1 let arr= ['baidu', 'google', 'taobao']; 2 3 console.log(arr.includes('baidu')); //true 4 console.log(arr.includes('baidu1')); //false
阅读全文
posted @ 2020-02-19 10:42 PromiseOne
阅读(31002)
评论(0)
推荐(0)
公告