我需要一种方法来防止window.location.replace()被更改/覆盖(例如:window.location.replace = function(){ return "Hi" }。起初,我尝试过Object.freeze(window.location.replace)但这没有做任何事情。
window.location.replace()
window.location.replace = function(){ return "Hi" }
Object.freeze(window.location.replace)
慕的地8271018
慕田峪4524236
相关分类