=>es6语法中的arrow function

(x) => x + 6

相当于

function(x){
    return x + 6;
};
posted on 2018-07-10 18:30  奈何鸿飞雁  阅读(222)  评论(0)    收藏  举报