Reset counter to 0 if value from function parameter is different in javascript?

后端 未结 0 1678
深忆病人
深忆病人 2021-01-31 01:57

I am sending value dynamically in counter function i.e, button can be counter(0), counter(1),counter(2), etc.

Now say if count = 0 (i.e, counter(0)), then I want to incre

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