How does Vue bind @ onblur to dynamically added elements?

the div of the red box is automatically generated by wangeditor. How to bind @ onblur to this div?

Mar.22,2021

try it with native js?
after wangeditor initialization

document.getElementById('msgSendCont').onblur = this.cc()
The

event delegate knows that you can bind the event to its parent element, and then use $event to determine whether the child element is or not.


for the framework of mvvm such as view, dynamically added elements are actually dynamically added data. Mapping from data to view, as long as you have written the template, adding data,view will automatically change

.
Menu