📅  最后修改于: 2022-03-11 15:03:46.752000             🧑  作者: Mango
var person = {'first_name': 'bill','age':20};
if ( person.hasOwnProperty('first_name') ) {
//person has a first_name property
}