上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 86 下一页
摘要: 安装CLI # 安装cli npm install -g @vue/cli # 或者 yarn global add @vue/cli # 查看版本 vue --version # 升级全局cli包 npm update -g @vue/cli # 或者 yarn global upgrade -- 阅读全文
posted @ 2021-06-10 10:02 富坚老贼 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 下载 Yarn 中文文档 (bootcss.com) 初始化项目 yarn init 生成package.json文件夹 { "name": "yarn", "version": "1.0.0", "main": "index.js", "license": "MIT" } 添加依赖包 yarn a 阅读全文
posted @ 2021-06-08 09:52 富坚老贼 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 查看分支 git branch 远程分支 git branch -r 创建分支 git branch 名称 切换分支 git checkout 分支名 删除分支 需切换到其他分支后再删除 git branch -D 分支名 #大写d不提示,直接删除 git branch -d #小写d提示处理合并后 阅读全文
posted @ 2021-06-02 08:25 富坚老贼 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 一、es6之前 1.代码模块化 通过使用立即执行函数,对象和闭包创建的模块方式称为 作用域只有两种:全局作用域和函数作用域 main.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="vie 阅读全文
posted @ 2021-05-21 20:01 富坚老贼 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 创建正则两种方式 字面量创建正则 const r=/test/; 对象创建正则 let r1=new RegExp("test") 调用正则的test方法判断是否符合规则 返回true或false console.log(r.test('test')) console.log(r1.test("te 阅读全文
posted @ 2021-05-21 10:54 富坚老贼 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-05-15 15:11 富坚老贼 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 通过闭包封装私有变量 function a() { //函数外访问不到 var s = 3; //使外部能够获得s变量的值 this.f = function () { return s } //改变s的值 this.add=function(){ s++ } } var t = new a() t 阅读全文
posted @ 2021-05-15 10:15 富坚老贼 阅读(29) 评论(0) 推荐(0) 编辑
摘要: https://yarn.bootcss.com/ 取代npm 安装 npm install -g yarn 安装路径 阅读全文
posted @ 2021-05-14 12:32 富坚老贼 阅读(97) 评论(0) 推荐(0) 编辑
摘要: //仓库地址 https://www.npmjs.com/ # 调整目录?? npm config set prefix "D:\nodejs\node_global" npm config set cache "D:\nodejs\node_cache" //查看当前镜像 npm get regi 阅读全文
posted @ 2021-05-14 12:27 富坚老贼 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 创建一个模板 npm init @vitejs/app my-vue-app -- --template vue yarn create @vitejs/app my-vue-app --template vue 目录结构 vscode 安装插件 volar 的vue3插件 安装yarn npm i 阅读全文
posted @ 2021-05-14 11:12 富坚老贼 阅读(249) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 86 下一页