🌈 搜索
📅  最后修改于: 2022-03-11 14:56:25.127000             🧑  作者: Mango
var x = { y: 10 }; console.log(x.hasOwnProperty("y")); //true console.log(x.hasOwnProperty("z")); //false