加载中......

摘要: 有时候需要剔除少数属性,留下大多数。类似于TS的omit 例子: let person = { name:"jack chen", age:54, address:'hongkong' } let {name,...xiaohong}=person console.log(xiaohong); 运行 阅读全文
posted @ 2022-12-01 11:10 MarchXD 阅读(500) 评论(0) 推荐(1) 编辑