Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd59995

Browse files
committed
update
1 parent 4fc7810 commit cd59995

File tree

4 files changed

+61
-5
lines changed

4 files changed

+61
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,8 @@ VS Code 默认支持 Emmet。更多 Emmet 语法规则,请自行查阅。
421421

422422
VS Code 有一个很强大的功能就是支持插件扩展。
423423

424-
425424
![](http://img.smyhvae.com/20190418_1932.png)
426425

427-
428426
上图中,点击红框部分,即可在输入框里,查找你想要的插件名,然后进行安装。
429427

430428
我来列举几个常见的插件,这些插件都很实用。
@@ -435,11 +433,13 @@ VS Code 有一个很强大的功能就是支持插件扩展。
435433

436434
GitLens 在 Git 管理上有很多强大的功能,比如:
437435

436+
- 将光标放置在代码的当前行,可以看到这样代码的提交者是谁,以及提交时间。这一点,是 GitLens 最便捷的功能。
437+
438438
- 查看某个 commit 的代码改动记录
439439

440440
- 查看不同的分支
441441

442-
- 可以将两个 commit 进行代码对比,甚至可以将两个 branch 分支进行代码比对。这一点,简直是 GitLens 最强大的功能。
442+
- 可以将两个 commit 进行代码对比,甚至可以将两个 branch 分支进行整体的代码比对。这一点,简直是 GitLens 最强大的功能。
443443

444444
### RemoteHub
445445

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
3+
### 001、对象的赋值
4+
5+
(1)在 store 中定义一个对象:
6+
7+
```javascript
8+
userInfo: {
9+
pin: '',
10+
nickName: '',
11+
avatarUrl: DEFAULT_AVATAR,
12+
definePin: '',
13+
isbind: true
14+
},
15+
```
16+
17+
(2)从接口拿到数据后,给这个对象赋值:
18+
19+
```javascript
20+
this.userInfo = {
21+
...this.userInfo,
22+
pin: res.base.curPin,
23+
nickName: res.base.nickname,
24+
avatarUrl: res.base.headImageUrl ? res.base.headImageUrl : DEFAULT_AVATAR,
25+
definePin: res.definePin
26+
}
27+
```

17-前端综合/02-2019年Web前端最新导航.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ Sass 是成熟、稳定、强大的 CSS 扩展语言。入门文档可以看:<
287287

288288
- **图片压缩**<https://www.yasuotu.com/>
289289

290+
- 图片转base64:<http://imgbase64.duoshitong.com/>
291+
292+
293+
290294
- 在线PS:<https://www.photopea.com/>
291295

292296
- 图片在线裁剪:<https://www.asqql.com/gifc/>

17-前端综合/2019年-前端日记.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,34 @@ Object.assign(this.dataObj, dataObj);
235235
尤其要研究一下 `vertical-align: middle;`这个属性。
236236

237237

238-
### 2019-05-30
238+
### 2019-06-11
239+
240+
已知某背景图片的尺寸是:586 * 931。现只截图图片的上面一部分区域(586 * 810)做展示。代码实现如下:
241+
242+
标签部分:
243+
244+
```html
245+
246+
<div class="img"> </div>
247+
248+
```
249+
250+
css部分:(重点是 background 属性的写法)
251+
252+
```css
253+
.img{
254+
width: 586rpx;
255+
height: 810rpx;
256+
background: url('https://img11.360buyimg.com/jdphoto/s586x931_jfs/t1/27766/15/3237/102443/5c258955Ee307620e/21a744b0d2e065b3.png') 0 0/cover no-repeat;
257+
margin: 0 auto;
258+
}
259+
260+
```
261+
262+
263+
264+
239265

240-
`arr1.push(arr2)`
241266

242267

243268

0 commit comments

Comments
 (0)