template标签中的内容必须符合HTML规范。这好象是句废话,其实不然,当模板中有代替化字符时,不一定完全符合HTML规范的,如
<template type="text/template" id="pageIndex">
<td attr="{{"Add_New_List"|lang}}" prop="{{"Edit_List"|lang}}"> </td>
</template>
会解析成
<template type="text/template" id="pageIndex">
<td attr="{{" add_new_list"|lang}}"="" prop="{{" edit_list"|lang}}"=""> </td>
</template>
解决方法1,修改成符合HTML语法规范
<template type="text/template" id="pageIndex">
<td attr="{{'Add_New_List'|lang}}" prop="{{'Edit_List'|lang}}"> </td>
</template>
解决方法2,使用script标签
<script type="text/template" id="pageIndex">
<td attr="{{"Add_New_List"|lang}}" prop="{{"Edit_List"|lang}}"> </td>
</script>