- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.

vue.js报错如下:

- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.

 

但翻下代码没有多写</div>呀

细看一下,然后是绑定的那个div漏写了一个</div>,导致默认给你加了一个</div>才报错这个错误

 

posted @ 2017-08-22 20:37  whendream  阅读(22985)  评论(0编辑  收藏  举报