=>是es6语法中的arrow function
(x) => x + 6
相当于
function(x){
return x + 6;
};
=>是es6语法中的arrow function
(x) => x + 6
相当于
function(x){
return x + 6;
};
相关文章: