js中 => 的含义

=>es6语法中的arrow function

(x) => x + 6

相当于

function(x){
    return x + 6;
};

 

posted @ 2017-01-10 10:44  developer_os  阅读(52963)  评论(2编辑  收藏  举报