替换debug
作者:互联网
_setInterval = setInterval setInterval = function setInterval(code, time){ console.log(code, time) code = code.toString().replace(/debugger/, "").replace(/function ()/, "function aaa") return window._setInterval(new Function(code) , time) } _setTimeout = setTimeout setTimeout = function setTimeout(code, time){ console.log(code, time) code = code.toString().replace(/debugger/, "").replace(/function ()/, "function aaa") return window._setTimeout(new Function(code), time) }
标签:function,code,setInterval,replace,time,debug,setTimeout,替换 来源: https://www.cnblogs.com/angdh/p/15725800.html