js赋值对象中的某一些属性
<script>
let obj = {
name:"11",
age:20,
sex:"2",
school:"1323",
study:"44",
info:{
hellow:"555"
}
}
let result = JSON.parse(JSON.stringify(obj,["name","age","sex","info","hellow"]))
console.log(result) // age: 20, info: {hellow: "555"},name: "11",sex: "2"
</script>