上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 29 下一页
摘要: <body> <div id="app"> <!-- select的单选 --> <select v-model="fruit"> <option value="apple">苹果</option> <option value="orange">橘子</option> <option value=" 阅读全文
posted @ 2022-08-17 14:45 杨建鑫 阅读(98) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <div class="gender"> <label for="male"> <input id="male" type="radio" v-model="gender" value="male"> 男 </label> <label for="fema 阅读全文
posted @ 2022-08-17 14:43 杨建鑫 阅读(37) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <!-- 1.checkbox单选框: 绑定到属性中的值是一个Boolean --> <label for="agree"> <input id="agree" type="checkbox" v-model="isAgree"> 同意协议 </label 阅读全文
posted @ 2022-08-17 14:42 杨建鑫 阅读(69) 评论(0) 推荐(0) 编辑
摘要: created() { this.$watch("message", (newValue, oldValue) => { console.log("message数据变化:", newValue, oldValue) }, { deep: true }) } 阅读全文
posted @ 2022-08-16 18:26 杨建鑫 阅读(13) 评论(0) 推荐(0) 编辑
摘要: watch: { // 默认watch监听不会进行深度监听 -- 简写模式 info(newValue, oldValue) { console.log("侦听到info改变:", newValue, oldValue) }, // 进行深度监听 -- 原始模式 info: { handler(ne 阅读全文
posted @ 2022-08-16 18:25 杨建鑫 阅读(95) 评论(0) 推荐(0) 编辑
摘要: // 完整的写法: fullname: { get: function() { return this.firstname + " " + this.lastname }, set: function(value) { const names = value.split(" ") this.firs 阅读全文
posted @ 2022-08-16 18:24 杨建鑫 阅读(31) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <!-- 1.普通的html写法 --> <h2 style="color: red; font-size: 30px;">哈哈哈哈</h2> <!-- 2.style中的某些值, 来自data中 --> <!-- 2.1.动态绑定style, 在后面跟上 阅读全文
posted @ 2022-08-16 14:50 杨建鑫 阅读(165) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <!-- 1.基本绑定class --> <h2 :class="classes">Hello World</h2> <!-- 2.动态class可以写对象语法 --> <button :class=" isActive ? 'active': '' " 阅读全文
posted @ 2022-08-16 14:49 杨建鑫 阅读(103) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <div v-memo="[name, age]"> <h2>姓名: {{ name }}</h2> <h2>年龄: {{ age }}</h2> <h2>身高: {{ height }}</h2> </div> <button @click="updat 阅读全文
posted @ 2022-08-16 14:48 杨建鑫 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 一.邂逅版本控制工具 二.集中式和分布式的区别 三.Git的环境安装搭建 四.Git初始化本地仓库 五.GIt记录更新变化过程 六.Git远程仓库和验证 七.Git的标签tag用法 八.Git分支的使用过程 九.工作中的Git Flow 十.Git远程分支的管理 十一.Git rebase的使用 十 阅读全文
posted @ 2022-08-12 22:46 杨建鑫 阅读(17) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 29 下一页