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 ?

Menu