Div add event on vue rendering

problem description

vue and jquery project mixed projects are written in vue at first, and then written in jquery (mainly rendering).
renders a result list in a vue project, using template.js rendering, the JS is a component that renders the results to various tags, and then adds the generated template to the existing dom using the method of $.html () .
but this will give rise to a problem. The tag on the post-rendering cannot use @ click= " to trigger events in vue. Of course, the public variables and methods in data are not available. Is there any way to enable the dom tag on the later rendering to use vue methods and variables?


I can't help it, because you don't have his declaration cycle. Don't use $.html () try render ?

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-1e8a6b9-46d8e.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-1e8a6b9-46d8e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?