区块链中文技术社区

箭头函数 与 forEach

array.forEach(function(item,index){
}.bind(this));

等同于

array.forEach((item,index) =>{
});

转载:https://www.cnblogs.com/guomengkai/p/11392958.html

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »