티스토리 뷰

728x90
window["functionName"](arguments);
window["My"]["Namespace"]["functionName"](arguments);

 

[출처] https://stackoverflow.com/questions/359788/how-to-execute-a-javascript-function-when-i-have-its-name-as-a-string

728x90
댓글