📅  最后修改于: 2022-03-11 15:03:09.327000             🧑  作者: Mango
var obj = {
first: "John",
last: "Doe"
};
//
// Visit non-inherited enumerable keys
//
Object.keys(obj).forEach(function(key) {
console.log(key, obj[key]);
});