From e12fade2d6473e67f6808b02aeda55aa704acb55 Mon Sep 17 00:00:00 2001 From: liu <3207586618@qq.com> Date: Tue, 8 Jun 2021 11:40:29 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=9A=84=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E5=B0=8F=E6=80=BB=E7=BB=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...6\347\232\204\345\237\272\347\241\200).md" | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 "\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-8(\347\273\204\344\273\266\347\232\204\345\237\272\347\241\200).md" diff --git "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-8(\347\273\204\344\273\266\347\232\204\345\237\272\347\241\200).md" "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-8(\347\273\204\344\273\266\347\232\204\345\237\272\347\241\200).md" new file mode 100644 index 0000000..60f918a --- /dev/null +++ "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-8(\347\273\204\344\273\266\347\232\204\345\237\272\347\241\200).md" @@ -0,0 +1,51 @@ + +#### 今天讲了组件的基础,组件也是Vue开发的一个重点内容 + +1. Vue 组件的两大特性操作 dom。 + +2. 组件 -- 组件是html、css、js等的一个聚合体。 + +3. 组件的优点就是能加快项目的进度。 + +4. 组件有全局创建和局部创建。 + ++ 全局创建 + +``` +var Hello = Vue.extend({ + template:'
这里是一个组件
' +}) + +Vue.component('Father',Hello) + +new Vue({ + el:'#app', +}) + + // 全局创建的一个简写形式: + + Vue.component('Father',{ + template:'
这里也是一个组件
' + }) + + + +``` + ++ 局部创建 + +``` +new Vue({ + el:'#app', + components:{ + 'Hello':{ // 组件名 + template:'#hello' // 组件的一个结构 + } + } +}) + +``` + +5. 组件功能也是一大特色,组件也就意味着可以扩展 html 元素,可以封装可重用的代码,可以增加开发效率。同时他也是自定义的。也因为Vue模板就是dom模板,使用的是原生态的解析器进行解析的,这也是限制dom模板发展的一个因素,就需要增加 js 的特性来扩展,从而达到可以限制的html元素使用。 + + -- Gitee From 41f3f2041a7461df24bfa981f8bf78e463caf66f Mon Sep 17 00:00:00 2001 From: liu <3207586618@qq.com> Date: Wed, 9 Jun 2021 17:28:27 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E5=91=BD=E4=BB=A4=E8=A1=8C=E7=95=8C?= =?UTF-8?q?=E9=9D=A2cli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...4\350\241\214\345\267\245\345\205\267).md" | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 "\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-9(Vue\345\221\275\344\273\244\350\241\214\345\267\245\345\205\267).md" diff --git "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-9(Vue\345\221\275\344\273\244\350\241\214\345\267\245\345\205\267).md" "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-9(Vue\345\221\275\344\273\244\350\241\214\345\267\245\345\205\267).md" new file mode 100644 index 0000000..88aa214 --- /dev/null +++ "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-9(Vue\345\221\275\344\273\244\350\241\214\345\267\245\345\205\267).md" @@ -0,0 +1,22 @@ + +### 今天讲了 Vue快速开发的命令行工具。 + +1. 看系统有没有yarn的情况下,没有就安装yarn 。 + ++ npm install -g yarn + +2. 然后切换淘宝源,加快下载的 yarn 的速度。 + ++ yarn config set registry https://registry.npm.taobao.org/ + +3. 然后就是下载 vue + ++ 这里使用yarn 来下载 : yarn global add @vue/cli + +4. 然后就是去配置环境变量,否则就不能使用 vue 来执行命令。 + ++ 在系统的环境变量中加入 yarn 的 bin 路径. + ++ 如:Users\Adminstrator\AppData\Local\Yarn\bin + +5. 退出命令模式,重新进入命令模式就可以使用 vue了。 \ No newline at end of file -- Gitee From 0da95cd7a01f296de82593fd226ed8fe44faa2f2 Mon Sep 17 00:00:00 2001 From: liu <3207586618@qq.com> Date: Fri, 11 Jun 2021 11:32:46 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E9=87=8D=E6=B8=A9cli=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E5=9C=A8=E6=9C=8D=E5=8A=A1=E5=99=A8=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...5\345\212\241\345\231\250\347\253\257).md" | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 "\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-11(\351\241\271\347\233\256\351\203\250\347\275\262\345\234\250\346\234\215\345\212\241\345\231\250\347\253\257).md" diff --git "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-11(\351\241\271\347\233\256\351\203\250\347\275\262\345\234\250\346\234\215\345\212\241\345\231\250\347\253\257).md" "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-11(\351\241\271\347\233\256\351\203\250\347\275\262\345\234\250\346\234\215\345\212\241\345\231\250\347\253\257).md" new file mode 100644 index 0000000..04cbef9 --- /dev/null +++ "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-11(\351\241\271\347\233\256\351\203\250\347\275\262\345\234\250\346\234\215\345\212\241\345\231\250\347\253\257).md" @@ -0,0 +1,25 @@ + +### 今天重新叙述了前天的部署的过程,尤其是一些小细节需要注意的地方,在配置好了之后要记得去修改配置,否则网页是不能打开的。 + +``` +server { + listen 80; + server_name www.xxxxxx.com;#生产环境 + location / { + root /usr/local/www/xxx_program/; + index index.html; + try_files $uri $uri/ /index.html; + } + } + server { + listen 80; + server_name test.xxxxxx.com; #测试环境 + location / { + root /usr/local/www/xxx_program_test/; + index index.html; + try_files $uri $uri/ /index.html; + } + } + +``` + -- Gitee From 5b778f9437ad52bbf3eba3aa322414b2d9b1ac04 Mon Sep 17 00:00:00 2001 From: liu <3207586618@qq.com> Date: Sat, 12 Jun 2021 17:00:29 +0800 Subject: [PATCH 04/10] d --- ...6\347\273\204\344\273\266\345\214\226).md" | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 "\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-12(\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\345\214\226).md" diff --git "a/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-12(\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\345\214\226).md" "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-12(\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\345\214\226).md" new file mode 100644 index 0000000..d087278 --- /dev/null +++ "b/\345\210\230\345\215\216\346\243\256/Vue-note-2021-6-12(\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\345\214\226).md" @@ -0,0 +1,33 @@ +### 今天讲了单文件组件化的使用。 + +1. 单文件组件化也是Vue开发的一个重点内容之一,vue文件,称为单文件组件,是Vue.js 自定义的一种文件格式,一个.vue文件就是一个单独的组件,在文件内封装了相关的代码 :如 html、css、js等。 + ++ vue 文件也由三部分组成: