![](/img/trans.png)
[英]How to escape <script> tags inside jquery html(). I used innerHTML and outerHTML to fix this but facing issues in it
[英]How do I fix the comment syntax used inside script tags?
在IntelliJ IDEA中編輯HTML文件時,當我使用Command- /在腳本標記內注釋一行JavaScript時,創建的注釋帶有花括號和哈希,而不是斜杠和星號:
<script>
{# this is a comment #}
</script>
代替:
<script>
// this is a comment
</script>
我如何確定IntelliJ為什么使用此注釋格式以及如何解決它?
謝謝!
事實證明,我在“偏好設置”>“語言和框架”>“ Python模板語言”中選擇了Jinja2作為Python模板語言。 我將模板語言更改為“無”,現在Command- /似乎又能正常工作了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.