通过给 div.innerHTML赋值,为什么div对象本身还没有innerHTML属性??
var div=document.getElementById('did');
div.innerHTML='div content';
div.onclick=function(){alert(this.innerHTML)};
console.log(typeof div); //object
console.log(div instanceof Object)//true
console.log(div.hasOwnProperty('onclick')); //false
console.log(div.hasOwnProperty('innerHTML')); //false;