上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 50 下一页
摘要: 视频 直接修改外来数据props会产生警告 props配置项 1. 功能:让组件接收外部传过来的数据 2. 传递数据:```<Demo name="xxx"/>``` 3. 接收数据: 1. 第一种方式(只接收):```props:['name'] ``` 2. 第二种方式(限制类型):```pro 阅读全文
posted @ 2023-03-18 15:48 垂序葎草 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 视频 1. 被用来给元素或子组件注册引用信息(id的替代者) 2. 应用在html标签上获取的是真实DOM元素,应用在组件标签上是组件实例对象(vc) 3. 使用方式: 1. 打标识:```<h1 ref="xxx">.....</h1>``` 或 ```<School ref="xxx"></Sc 阅读全文
posted @ 2023-03-18 15:26 垂序葎草 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 视频 使用vue inspect > output.js可以查看到Vue脚手架的默认配置。 使用vue.config.js可以对脚手架进行个性化定制,详情见:https://cli.vuejs.org/zh main.js改变对应的下列中的entry后面的main.js也要改变 ###vue.con 阅读全文
posted @ 2023-03-18 15:24 垂序葎草 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 视频61 视频62 ES6->ES5 babel 视频63 eslint语法检查 #结构 #vue components ###School.vue <template> <div class="demo"> <h2>学校名称:{{name}}</h2> <h2>学校地址:{{address}}</ 阅读全文
posted @ 2023-03-18 02:59 垂序葎草 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 视频 安装vetur vue代码高亮 没安装脚手架的时候,浏览器不认ES6标准 #HTML <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>练习一下单文件组件的语法</title> </head> <body> <!-- 准 阅读全文
posted @ 2023-03-17 21:05 垂序葎草 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 视频58 视频59 <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>一个重要的内置关系</title> <!-- 引入Vue --> <script type="text/javascript" src="../js/vue 阅读全文
posted @ 2023-03-17 20:34 垂序葎草 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 视频 <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>VueComponent</title> <script type="text/javascript" src="../js/vue.js"></script> </he 阅读全文
posted @ 2023-03-17 20:00 垂序葎草 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 视频 <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>组件的嵌套</title> <!-- 引入Vue --> <script type="text/javascript" src="../js/vue.js"></scri 阅读全文
posted @ 2023-03-17 19:45 垂序葎草 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 视频 <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>几个注意点</title> <script type="text/javascript" src="../js/vue.js"></script> </head> <bo 阅读全文
posted @ 2023-03-17 19:37 垂序葎草 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 视频 <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>基本使用</title> <script type="text/javascript" src="../js/vue.js"></script> </head> <bod 阅读全文
posted @ 2023-03-17 18:17 垂序葎草 阅读(15) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 50 下一页