箭头函数 2019-07-24 本文已影响0人 夜半钟声 ES6允许使用“箭头”(==>)定义函数。 箭头函数 input.map(item==>item+1) 等同于 input.map(function(item){ return item+1; })