会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
古墩古墩
CnBlogs
Home
New Post
Contact
Admin
Subscription
2021年2月1日
判断数组中存在重复元素
。 let arr = [1,2,1,1,3,3,3,4,5]; console.log(arrayIsRepet(arr)); function arrayIsRepet(arr){//判断数组中存在重复元素 let b = []; let c = []; arr.forEach(item =>
Read More
posted @ 2021-02-01 18:21 古墩古墩
Views(356)
Comments(0)
Diggs(0)
公告