removing and then adding element with javaScript

后端 未结 0 1014
挽巷
挽巷 2021-01-22 02:39

When a button is clicked, I want to add an element to my DOM. But first, I want to remove the previous one I added (in the previos click). Inside the click handler I wrote:

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