VUE基础
作者:互联网
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<!-- 定义div,id为app1。在div中定义子div,id为div_1
div_1的绑定模式为v-text,值为div_1
Vue的对象名为app1。
库地址:"/public_libs/vue.js" -->
<body>
<div id="app1">
<div id="div_1" v-text='div_1'></div>
</div>
<!-- <script src="/public_libs/vue.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script type="text/javascript">
var app1=new Vue({
el:"#app1",
data: {
div_1:'div_1'
}
})
</script>
</body>
</html>
标签:el,Vue,--,基础,app1,VUE,var,div 来源: https://blog.csdn.net/weixin_46422910/article/details/118516009