dynamically generated a dom element, and then dynamically added a child element A to the dom element. After adding it, I added a listening event to A. the first click had an effect, but the hidden action was performed after the click, and then it was displayed and clicked again. The listening event did not work. Although I added the element dynamically, I did not remove it the second time but just hid it. Why can"t you use it after showing it again?
detailed code:
<div class="box"></div>
boxbox1,box1
<div class="box">
<div class="box1"></div>
</div>
box1boxbox2,box2box1box2box2box1box1box1
<div class="box">
<div class="box1"></div>
<div class="box2"></div>
</div>