1 Star 0 Fork 0

ty / vue基础学习

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
1.vue数据对象.html 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
ty 提交于 2022-06-08 23:12 . first commit
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>vue-test</title>
<!-- <script src="https://unpkg.com/vue@next"></script> -->
<!-- <script src="js/v3.2.8/vue.global.prod.js" type="text/javascript" charset="utf-8"></script> -->
</head>
<body>
<div id="app">
{{ message }}
<span>{{message}}</span>
<h2>{{school}}</h2>
<h2>{{school.name}}</h2>
<ul>
<li>{{arr[0]}}</li>
<li>{{arr[1]}}</li>
</ul>
</div>
<script src="js/v2.6.10/vue.js" type="text/javascript"></script>
<script>
var app = new Vue({
el:'#app',
data:{
message:'nihao!',
school:{
class:'六年级',
name:'奥赛班'
},
arr:['广州','厦门','东莞']
}
})
// const App = {
// data() {
// return {
// message: '插值表达式!',
// school:{
// class:'六年级',
// name:'奥赛班'
// },
// arr:['a1','a2','a3']
// }
// }
// };
// Vue.createApp(App).mount('#app');
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/TyMicro/vue-basic-learning.git
git@gitee.com:TyMicro/vue-basic-learning.git
TyMicro
vue-basic-learning
vue基础学习
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891