📅  最后修改于: 2022-03-11 14:53:17.346000             🧑  作者: Mango
if you're using Angular, then avoid jQuery if possible. Instead just use an Angular function which grabs the HTML you need. Here's a post showing the javascript to grab part of a dom, so just put that in your angular fn.
How to get the HTML for a DOM element in javascript
If you're really stuck on using jQuery, there are lots of posts about how to create directives for using jQuery.