js 轉換字符串 爲 同名 函數

var str = 'test';io

function test() {function

    alert("test");
test

}

window[str]();

相關文章
相關標籤/搜索