1.=>什么用法
=>
是es6語法中的arrow function
(x) => x + 6
相當(dāng)于
function(x){
return x + 6;
};
2. 2017nodejs使用報告
https://blog.risingstack.com/what-is-node-js-used-for-2017-survey/
3. Array.prototype.map()
數(shù)組便利,實際例子:
var array1 = [1, 4, 9, 16];
// pass a function to map
const map1 = array1.map(x => x * 2);
console.log(map1);
// expected output: Array [2, 8, 18, 32]
4. fetch()
可以方便的調(diào)用ajax,返回promise對象
http://blog.csdn.net/sinat_17775997/article/details/70054674