es6 解构写法:给变量取别名

在变量后面加一个:

var {f: foo} = {f: 5};
foo == 5 // true
原文地址:https://www.cnblogs.com/axel10/p/9388965.html