How to call a function using variable in javascript without using window?

前端 未结 0 1524
花落未央
花落未央 2020-12-30 22:11

Suppose there is a function(from a module) named fiveStar and i want to call it using a variable,

for e.g using window, i could do this:

const num = \'         


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