Adding or removing from an array based on if it includes event

前端 未结 0 1405
时光取名叫无心
时光取名叫无心 2020-12-12 05:57

I am trying to have a single button that will add the value to the array, or if the value already exists in the array to remove that value.
The array is called

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