如何判断属性是来自自身对象还是js原型链最上层对象var obj = {name: 'h5course-com'}obj.hasOwnProperty('name') trueobj.hasOwnProperty('toString&2023-03-03JavaScript70