remove appended script javascript

后端 未结 8 1695
执笔经年
执笔经年 2020-12-29 15:35

how can I remove my appended script because it causes some problems in my app.

This is my code to get my script

var nowDate = new Date().getTime();
v         


        
8条回答
  •  被撕碎了的回忆
    2020-12-29 15:53

    I did some more tests, and before you'll get a correct answer to your question (hope there is a one) you can try this:

    
    
    

    This is just a test code, but it contains an idea, how you possible could solve the problem. It removes from the DOM, and the last line destroys all functionality of the script.

    (The code also has a little detail, which shows, that setTimeout will do eval(), no matter how it is argumented...?)

提交回复
热议问题