search

Home  >  Q&A  >  body text

javascript - How to use jquery to obtain and operate dom in js template

As shown in the picture, this is HTML wrapped in script. I wrote jquery and could not get the dom. It is said on the Internet that the script is parsed as an ordinary string. So how should I use jquery?

typechotypecho2715 days ago852

reply all(3)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-06-12 09:32:32

    Put jquery after </body> (at the bottom of the code).

    reply
    0
  • 代言

    代言2017-06-12 09:32:32

    It’s not like you can’t get it~~. You just generated it using a template, look at the location of Jq

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-06-12 09:32:32

    Render out the tag and get the dom

    reply
    0
  • Cancelreply