我試圖生成通過jQuery的有效跨距標籤:Thymeleaf和jQuery報價失敗
$("#commentsSection").append("<span class='myClass'>");
$("#commentsSection").append("</span>");
我使用Spring引導和Thymeleaf和HTML等將不會呈現因:
SyntaxError: missing) after argument list
$("#commentsSection").append("<span class="myClass">");
我應該用esape引號嗎?
它的工作原理,謝謝! – jarosik