2014-09-26 72 views

回答

0
hello thanks for the reply but I see the `"call" is not supported error` why ? 

    function DynamicCreateFunction(callback){ 
    callback.call(this); //or .apply() or simply callback() 
} 

但問題就迎刃而解了,替代解決, 「功能正在工作」

dynamicFunction = window[func]; 
dynamicFunction(); 

謝謝 -

+0

也許你有地方。無論如何,這個解決方案應該做到這一點,但它每次都將函數綁定到窗口。也許這不是必要的 – steo 2014-10-19 12:01:54