1.如何解决vue框架模板引擎与其他模板引擎冲突
Vue.config.delimiters =['${','}'];//比如这种
2.v-show在teamplate中是不适用
3.如何获取当前点击的对象,可以在html绑定事件时传入$event,然后在实例化vue对象的methods对应方法传入形参event,则event.currentTarget可以获取当前对象;
4.如何在html弄成模板,可以用<script>标签,具体如下
在html中:
<script type="text/template" id="contact"></script>
在js中:
var contact=Vue.extend({
template:#contact""
});
5.this.$nextTick();