摘要:
翻看MDN是,看到一个例子 var elements = [ 'Hydrogen', 'Helium', 'Lithium', 'Beryllium' ]; elements.map(({ "length": lengthFooBArX }) => lengthFooBArX) // [8, 6, 阅读全文
摘要:
for of 迭代和解构,完成写法 代码简化简写 let people =[ { name:'zzh', age:18, familay:{ father:'A', mather:'B' } }, { name:'lyy', age:18, familay:{ father:'C', mather: 阅读全文