Can I write a [removed] tag inside a [removed] tag

后端 未结 2 1113
甜味超标
甜味超标 2020-12-19 17:37

This is my code. I\'m trying to stop running an external js file when screen width is less than 1025.



        
2条回答
  •  眼角桃花
    2020-12-19 18:05

    
    

    You can use {{html ""}} in place of

    Explanation [update]:

    When you use a HTML tag inside a quoted (literal) string, the tag is treated as a closing tag rather than as a portion of the string. So you cannot directly use the tag inside a script section.

    One work-around is to escape the tags and/or split up the

提交回复
热议问题