标签:property for 为我 script orm delete bcd 删除 let
const data = {a:1,b:2,c:3,d:4,e:5,f:6,g:7} delete data.a Reflect.deleteProperty(data, "b"); delete data.c Reflect.deleteProperty(data, "d");
2、解构
const data = {a:1,b:2,c:3,d:4,e:5,f:6,g:7} const {a,b,c,d,...rest} = data rest 即为我们需要的对象
标签:property for 为我 script orm delete bcd 删除 let
原文地址:https://www.cnblogs.com/liuyueji/p/12574550.html