JS call multiple stored functions, start with this

前端 未结 0 1609
Happy的楠姐
Happy的楠姐 2020-12-04 04:19

I can store a function in a variable and call it later like this

var storedFunction = functionName;

//Later On
storedFunction(); //Equivalent to functionName         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题