How to unload a javascript from an html?

前端 未结 7 2123
予麋鹿
予麋鹿 2020-11-28 10:27

How can I unload a JavaScript resource with all its defined objects from the DOM?

Im developing a simple framework that enables to load html fragments into a \"main\

7条回答
  •  孤街浪徒
    2020-11-28 11:21

    you can make them = null

        function fnc1 (){
    
        }
    
        window.fnc1  = null
        //or
        window["fnc1"]  = null
    

提交回复
热议问题