2
我试图覆盖在Firefox中window.location的,通过下面的代码,并不断收到错误(其实是想阻止默认行为,但我认为这是不相关):如何在Firefox中覆盖window.location?
Code :
window.__defineGetter__('location', function() {});
Error
redeclaration of var location
我开始在Programatically disable window.location.reload?的建议,但没有奏效。
由于提前, 苏尼尔