Skip to content

Commit bb5cedf

Browse files
committed
add:前端日记
1 parent 262fe5e commit bb5cedf

File tree

5 files changed

+94
-2
lines changed

5 files changed

+94
-2
lines changed

00-前端工具/01-Git的使用.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
3+
## 日常操作积累
4+
5+
6+
7+
### `branch1`的某个`commit1`合并到`branch2`当中
8+
9+
切换到branch2中,然后执行如下命令:
10+
11+
```
12+
git cherry-pick commit1
13+
```
14+
15+
16+
17+
18+
19+
20+
21+
## 推荐连接
22+
23+
24+
### 2018-06
25+
26+
- [聊下git pull --rebase](https://www.cnblogs.com/wangiqngpei557/p/6056624.html)
27+
28+

03-JavaScript基础/08-数组.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ PS:sort方法的功能非常强大,能对数字和字母进行排列。
291291

292292
console.log(arr.slice(2)); //从第二个值开始截取
293293
console.log(arr.slice(2,4)); //截取从第二个到第四个之间的值(不包括第四个值)
294-
console.log(arr.slice(-2)); //截取最后两个值
294+
console.log(arr.slice(-2)); //截取最后两个值(返回的是最后两个值)
295295
console.log(arr.slice(4,2)); //
296296

297297

06-HTML5和CSS3/06-CSS3属性详解:flex布局.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727

2828
h4{
29-
/* 设置跨列:让h4这标题位于整个文本的标题,而不是处在某一列之中*/
29+
/* 设置跨列:让h4这标题位于整个文flex-wrap本的标题,而不是处在某一列之中*/
3030
-webkit-column-span: all;
3131
text-align: center;
3232
}

20-前端综合/2018年-前端日记.md

+59
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,65 @@ v-on:keyup="querysku = querysku.replace(/\D/,'')"
164164

165165

166166

167+
### 2018-06-04
168+
169+
**1、git相关**
170+
171+
把 branch1 中的某条记录(比如myLog),提交到 branch2中。做法如下:
172+
173+
先切换到branch2中,然后输入如下命令:
174+
175+
```
176+
git cherry-pick myLog
177+
```
178+
179+
180+
### 2018-06-05
181+
182+
**1、font-size**
183+
184+
`font-size`的最小值为12。
185+
186+
也就是说,浏览器的最小字体为12,要是再小于这个值,是不生效的。如果想要小于12,需要在浏览器的高级设置里去修改。
187+
188+
189+
190+
**2、git 多分支同时开发**
191+
192+
现在有这样一个场景:我要同时开发一个项目里的两个功能。今天上午开发功能1,下午开发功能2。明天上午改功能1的bug,明天下午改功能2的bug。
193+
194+
相当于是,我现在是**并行**开发两个功能了,要怎么通过git来进行协作呢?
195+
196+
目前考虑到有几种答案。
197+
198+
方式1:
199+
200+
- 从master拉分支`branch1`,此分支专门用来开发功能1,改功能1的bug。
201+
202+
- 再从master拉分支`branch2`,此分支专门用来开发功能2,改功能2的bug。
203+
204+
以后需要上线哪个功能,就从那个分支merge代码到master。
205+
206+
207+
208+
209+
**3、其他**
210+
211+
- 两个span之间默认有5px的 margin
212+
213+
214+
- **shadow-root**:下一代。
215+
216+
217+
218+
### 2018-06-07
219+
220+
- [原生js实现淡入淡出效果](https://www.teakki.com/p/57dfb44cd3a7507f975e91e4)
221+
222+
- 通过 jQuery 获取Dom的时候,比如`$('#topNavTop').css('background','red')`记得要指明是 id 还是 class。
223+
224+
- 每次开发一个新的需求,每次开发一个新的需求,记得要问清楚:“H5和”
225+
167226

168227

169228

推荐链接.md

+5
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@
153153
- [What makes a good front end engineer](https://www.nczonline.net/blog/2007/08/15/what-makes-a-good-front-end-engineer/)
154154

155155

156+
### 2018-05-31
157+
158+
- [一个bit一个bit的进行 Base64 白话科普,看不懂算你输](https://mp.weixin.qq.com/s/TcJUQbqjBditRvRIHuXX-Q)
159+
160+
156161

157162

158163

0 commit comments

Comments
 (0)