tofacebook.com -专业IT技术社区(指牛堂)
标签:body lte var turn return ons ret pos cti
var a = [0, 2, 3, 4]; a = a.map(function (i) { return i + 1; }).filter(function (i) { console.log(i) return i % 2 != 0; }); console.log(a); //3,5
js中map、filter用法
原文地址:https://www.cnblogs.com/rockyan/p/8573736.html
使用微信扫一扫登录或注册