我们可以在 javascript 中创建对 document.location 属性的引用吗?从过去几天开始,我们正在研究在 document.createElement 上创建的钩子。在使用它时,我们怀疑是否可以在 document.location、document.scripts 等对象上创建挂钩。
var dbi = document.body.innerHTML;
document.body.innerHTML=function () {
var elem = dbi.apply (document, arguments);
console.log(arguments);
}