摘要: 翻看MDN是,看到一个例子 var elements = [ 'Hydrogen', 'Helium', 'Lithium', 'Beryllium' ]; elements.map(({ "length": lengthFooBArX }) => lengthFooBArX) // [8, 6, 阅读全文
posted @ 2020-10-28 16:04 javascript9527 阅读(158) 评论(0) 推荐(0) 编辑
摘要: for of 迭代和解构,完成写法 代码简化简写 let people =[ { name:'zzh', age:18, familay:{ father:'A', mather:'B' } }, { name:'lyy', age:18, familay:{ father:'C', mather: 阅读全文
posted @ 2020-10-28 15:34 javascript9527 阅读(109) 评论(0) 推荐(0) 编辑