上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: vue2 传统选项式api,逻辑比较分散,可读性差,可维护性差 vue3 composition Api 组合式api,逻辑分明,可维护性高,完美支持ts,更接近面向对象 重写双向绑定 vue2 基础Object.defineProperty()实现 vue3 基于Proxy proxy与Objec 阅读全文
posted @ 2022-08-08 22:03 前端之旅 阅读(200) 评论(0) 推荐(0)
摘要: ##远程仓库路径查询 git remote -v ##添加远程仓库 git remote add remote_name url git remote set-url remote_name url ##本地删除 git branch -D branch_name ##删除指定的远程 git rem 阅读全文
posted @ 2022-06-17 17:01 前端之旅 阅读(73) 评论(0) 推荐(0)
摘要: // 官网地址:https://git-scm.com/book/zh/v2/Git-%E5%B7%A5%E5%85%B7-%E5%AD%90%E6%A8%A1%E5%9D%97 // 添加一个子模块 // remote 远程仓库 // path 本地存放路径 git submodule add r 阅读全文
posted @ 2022-03-12 00:57 前端之旅 阅读(54) 评论(0) 推荐(0)
摘要: ES6判断一个数组是否包含另一个数组 function arrHasOtherArr(arr, arr1) { return arr1.every(item => arr.includes(item)) } arrHasOtherArr([1,2,3], [1,2,3]) // true arrHa 阅读全文
posted @ 2021-11-05 18:06 前端之旅 阅读(1832) 评论(0) 推荐(0)
摘要: 在Typescript中,使用接口(interfaces)来定义对象的类型 interface Person { name: string; age: number; } // tom的类型是Person,tom的形状必须和接口Person一致 let tom: Person = { name: ' 阅读全文
posted @ 2020-06-11 11:43 前端之旅 阅读(2122) 评论(0) 推荐(0)
摘要: 布尔值 let isDone: boolean = false // 使用构造函数创建的对象不是布尔值,返回的是一个boolean对象 let createByNewBoolean: boolean = new Boolean(1) // 直接调用Boolean也可以返回一个boolean类型 le 阅读全文
posted @ 2020-06-11 10:00 前端之旅 阅读(333) 评论(0) 推荐(0)
摘要: ``` // 在git项目文件夹内右击Git Bash Here // git常用命令 // 没有分支的情况 1. git pull // 将线上代码同步到本地,注意,会覆盖本地代码 2. git add . // 可以提交未跟踪和修改文件,但是不处理删除文件。 3. git commit -m "给这次提交一个说明" 4. git push // 将本地代码提交到线上 // 项目创建分支 按模块 阅读全文
posted @ 2020-04-28 17:03 前端之旅 阅读(883) 评论(0) 推荐(0)
摘要: 注册阿里云 https://www.aliyun.com/ 购买云服务器 1. 基础配置 2. 网络和安全组,默认,直接点下一步 3. 系统配置 4. 分组设置,默认,下一步, 5. 确定订单,支付 6. 远程连接云服务器 7. 将自己的项目部署到云服务器, 云服务器就是一台电脑,远程可以给他安装Q 阅读全文
posted @ 2020-04-27 07:48 前端之旅 阅读(470) 评论(0) 推荐(0)
摘要: vuex其实就是一个观察者模式 1. 可以在Vue实例绑定一个全局的属性,this.$myStore 来创建一个仓库存储数据,只是不是响应式的 2. this.$root 可以访问Vue根实例,和上一点差不多,绑定一个全局仓库 3. 使用Vue的bus总线机制,原理就是在Vue原型上创建一个vue实 阅读全文
posted @ 2020-04-17 16:57 前端之旅 阅读(209) 评论(0) 推荐(0)
摘要: let和const命令 模板语言 模板语言使用一对``来表示 let a = ` console.log(a) console.log(a) console.log(a) ` console.log(a) // 原样输出 模板语言使用变量 let b = 10 let str = console.l 阅读全文
posted @ 2020-04-13 17:14 前端之旅 阅读(236) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 12 下一页