There is a popup that is enclosed in the <script> as a template, by clicking on the open button, I will use the jsrender library jsrender render this temlate, as well as by closing the button, I will delete it from the DOM , so that each pop-up initializes the new popup. whether the operation is expensive every time to remove it from the house model? Or simply make a popup and initially assign it display none , when clicked, it is natural to show it and then close and squeeze all the input values when closing, that is, you do not need to initialize a new popup each time.
|