📜  卸载 js 对象 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:06.457000             🧑  作者: Mango

代码示例1
//Not sure if this will work, Haven't tested it yet but it makes sense.
    function fnc1() {
        console.log("I did something")
    }
    
    window.fnc1  = null
    //or
    window["fnc1"]  = null
    //see the source below