当我调用此行时:
Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")
对于FireBug,它返回:
>>> Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")
对于 IE,它返回的开发者工具在哪里:
>> Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")
{
get : function innerHTML() { [native code] } ,
set : function innerHTML() { [native code] } ,
enumerable : true,
configurable : true
}
你知道为什么不一样吗?为什么选择 IE 开发。对于这种情况,工具似乎比 FireBug 更具描述性?