vue的自定义指令,过滤器,模块,网络请求。
<div v-zns>asdljasd</div> | |
</div> | |
<script src="libs/vue.js"></script> | |
<script> | |
Vue.directive("zns",function(){ | |
var { | |
el | |
} = this; | |
el.style.width="200px"; | |
el.style.height="200px"; | |
el.style.backgroundColor="blue"; | |
el.style.color = "red"; | |
}); | |
new Vue({ | |
el:"#box", | |
data:{}, | |
methods:{} | |
}) |
11