Js 循环总结
2021-01-16 11:11
阅读:573
            
                         标签:map遍历   OLE   map   nbsp   index   ret   i++   cti   turn     map遍历   Js 循环总结 标签:map遍历   OLE   map   nbsp   index   ret   i++   cti   turn    原文地址:https://www.cnblogs.com/Essaycode/p/13379479.html
for(let i=0;i){
//循环内容
}
var arr = [0,1,2,3,4];
var str = arr.map(function(i,index,arr){
    console.log(this);
    return ++i;
},this);
console.log(str);  //结果为 [1,2,3,4,5]ils/100097931
评论
亲,登录后才可以留言!