• 首页
  • 本文PC版

箭头函数 与 forEach

2020-07-30 15:39:40
array.forEach(function(item,index){
}.bind(this));

等同于

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

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

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »

© 2018 MIP for Typecho , Designed by Holmesian.