티스토리 뷰

공부

[JS] execute `string name function`

승가비 2019. 10. 15. 00:23
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
댓글