Dynamically add html, but include buttons that cannot enable bind events

add html, dynamically but include confirmation buttons that cannot use bound events

Mar.11,2021
Is

adding an event that was previously bound? In this case, you want to use the event managed (event deltegate), that is, to bind the event to the parent element.


1. There must be no way to bind the
2 of the event to the dynamically added dom element. Look, you should write it in vue. The idea of vue is not to manipulate dom directly. It should be data-driven, which means you need to add dom. In fact, what you want to add is data, so you can understand that your recipe list is a data, which is rendered as dom in the template. When you click add, add a piece of data to the array, and dom naturally updates

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b40b87-40ac2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b40b87-40ac2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?