上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 29 下一页
摘要: 父组件 : <template> <div>AppContent: {{ name }}</div> <button @click="name = 'kobe'">app btn</button> <show-info></show-info> </template> <script> import 阅读全文
posted @ 2022-08-24 15:04 杨建鑫 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 父组件 : <template> <div> <div class="name" ref="oneRef"> ref第一个 </div> <div class="name" ref="twoRef"> ref第2个 </div> <hello ref="ziRef"></hello> </div> 阅读全文
posted @ 2022-08-24 14:50 杨建鑫 阅读(157) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <input type="number" v-model="num1"> + <input type="number" v-model="num2"> 答案 : {{total}} <hr> <input type="text" v-model="name1"> < 阅读全文
posted @ 2022-08-24 14:10 杨建鑫 阅读(18) 评论(0) 推荐(0) 编辑
摘要: <template> <div> 默认 : {{data.name}} - {{data.age}} - {{data.hight}} <br> 解构 : {{name}} - {{age}} - {{hight}} <br> <button @click="age++,hight++">改变</b 阅读全文
posted @ 2022-08-24 13:30 杨建鑫 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 父组件 : <template> <div> 父组件 : {{data.name}} - {{data.age}} - {{data.hight}} <hr> <Hello :data="data" :readonlyData="readonlyData" @readonlyChange="read 阅读全文
posted @ 2022-08-24 11:50 杨建鑫 阅读(17) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <h1>vue3</h1> <span>{{name}} - {{age}}</span> <button @click="refname">函数修改name</button> <button @click="name = '刚'">直接修改name</button 阅读全文
posted @ 2022-08-24 10:18 杨建鑫 阅读(51) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <h1>vue3</h1> <span>{{info.name}} - {{info.age}}</span> <button @click="infobtn">修改info</button> </div> </template> <script> import { 阅读全文
posted @ 2022-08-24 09:54 杨建鑫 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-23 17:32 杨建鑫 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-23 15:21 杨建鑫 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-23 14:59 杨建鑫 阅读(3) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 29 下一页