vue异常——template SyntaxError: string literal contains an unescaped line break
生活随笔
收集整理的這篇文章主要介紹了
vue异常——template SyntaxError: string literal contains an unescaped line break
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
首先爆紅肯定就是有異常了:
然后當運行瀏覽器的時候,報出錯誤:
?標點符號錯了?不是英文單引號,或者雙引號?
問題解決:
還真不是,使用的符號是你鍵盤左上角,esc下的那個標點。即:? ?```````````````````
進行更改
template:`<div class='app'><h2>{{msg}}</h2></div>`?
原諒無知者無罪!!!?
總結
以上是生活随笔為你收集整理的vue异常——template SyntaxError: string literal contains an unescaped line break的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Vue全家桶实战02_【从入门到放弃系列
- 下一篇: html5倒计时秒杀怎么做,vue 设