会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
喆星高照
博客园
首页
新随笔
联系
订阅
管理
2023年2月6日
数组封装新方法
摘要: //查找数组中符合条件的元素 Array.prototype.where = function (condition) { var ret = []; for (var i = 0; i < this.length; i++) { if (condition(this[i])) { ret.push
阅读全文
posted @ 2023-02-06 14:19 喆星高照
阅读(1529)
评论(0)
推荐(0)
编辑
公告