上一页 1 2 3 4 5 6 7 8 ··· 21 下一页

2022年6月22日

git基础:删除分支下的文件

摘要: 将文件同时从工作区,暂存区,分支上删除 git rm -f file_name git add . git commit -m "xxx" 只从工作区,分支上删除,任然存在工作区中 git rm -r --cached file_name git add . git commit -m "xxx" 阅读全文

posted @ 2022-06-22 18:12 In-6026 阅读(316) 评论(0) 推荐(0) 编辑

git基础:版本追溯

摘要: 回到指定版本 git reset --hard 版本号 版本号在这里找,右边那串符号就是版本号(每次commit的时候一定把备注写清楚,版本追溯的时候才能快速准确找到想要的那个版本) 阅读全文

posted @ 2022-06-22 18:06 In-6026 阅读(31) 评论(0) 推荐(0) 编辑

第一次使用commit时需要配置邮箱

摘要: git config --global user.email "邮箱地址" git config --globale user.name "用户名" 阅读全文

posted @ 2022-06-22 16:32 In-6026 阅读(12) 评论(0) 推荐(0) 编辑

git与svn

摘要: git是分布式管理 svn是集中式管理 git会一次把所有版本的代码都拉取到本地,即使断网了也可以随意切换版本,svn断网的话就不能随便切 阅读全文

posted @ 2022-06-22 16:19 In-6026 阅读(13) 评论(0) 推荐(0) 编辑

箭头函数this指向

摘要: 公理: 箭头函数的this在定义时就确定了,不会再改变 鉴于网上的各种对this的解释我记不住,记住了也常有和实践不符的情况,我自己形成一套找this的方法,可能与理论不符合,但是目前能够解释我实践的结果 我的歪理 箭头函数的 this 是定义该函数的层级 的父层级的this { b { a } } 阅读全文

posted @ 2022-06-22 00:25 In-6026 阅读(18) 评论(0) 推荐(0) 编辑

2022年6月21日

$bus

摘要: main.ts Vue.prototype.$bus = new Vue() xxx.vue import CombinedVueInstance from 'vue' export default class XXX extends Vue { $bus!: CombinedVueInstance 阅读全文

posted @ 2022-06-21 20:16 In-6026 阅读(25) 评论(0) 推荐(0) 编辑

2022年6月20日

栅格布局

摘要: <section class="layout grid"> <article class="left-center-right"> <div class="left">我是 left</div> <div class="center"> <h1>网格布局解决方案</h1>我是 center </di 阅读全文

posted @ 2022-06-20 22:25 In-6026 阅读(32) 评论(0) 推荐(0) 编辑

滚动条位置document.bod.scrollTop总为0

摘要: 页面指定了DTD,即指定了DOCTYPE时,使用document.documentElement.scrollTop。 页面没有DTD,即没指定DOCTYPE时,使用document.body.scrollTop。 各浏览器下 scrollTop的差异 IE: 对于没有doctype声明的页面,使用 阅读全文

posted @ 2022-06-20 20:29 In-6026 阅读(32) 评论(0) 推荐(0) 编辑

2022年6月19日

slice,substr,substring

摘要: slice(start, end) 从start到end间的字符,包含start,不包含end,end必须大于start,否则返回空字符 substr(start, count) 从start开始往后选count个,包含start,count > 0否则返沪空字符串 substring(index1 阅读全文

posted @ 2022-06-19 16:30 In-6026 阅读(17) 评论(0) 推荐(0) 编辑

2022年6月17日

ts+vuex

摘要: ###文件目录 |-store |-index.ts |modules |-home.ts |-about.ts ###根模块,index.ts import Vue from 'vue' import Vuex from 'vuex' import { IHomeState } from './m 阅读全文

posted @ 2022-06-17 20:42 In-6026 阅读(106) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 21 下一页

导航