var dom = document.getElementById('domId');dom.innerHTML = "hello world!";console.log(typeof dom); //objectconsole.log(dom.hasOwnProperty("innerHTML")); //falseconsole.log(dom.__proto__.hasOwnProperty("innerHTML")); //false
添加回答
举报
0/150
提交
取消