Skip to content

Commit 635172e

Browse files
author
公众号:Rong姐姐好可爱
authored
Merge pull request #71 from 142vip/feat/docs-test
feat: 导航栏、侧边栏内容修改,新增目录对应的文档
2 parents 1cc8e10 + b9760a4 commit 635172e

File tree

242 files changed

+6916
-7380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+6916
-7380
lines changed

code/algorithm/front-end/add.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ function add() {
2424

2525
const str = add(1, 6)(2)(3)
2626
console.log(str)
27-
// console.log(String(add(1,6)(2)(3)) )
28-
// console.log(add(1)(2)(3))
29-
// console.log(add(1)(2,3,4))
27+
console.log(add(1)(2)(3))
28+
console.log(add(1)(2, 3, 4))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# nginx
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# redis

code/node/dayjs/demo-1.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@ console.log(dayjs(1318781876406))
3131
console.log(dayjs.unix(1318781876))
3232
console.log(dayjs.unix(1318781876.721))
3333

34-
3534
// Date对象
3635
const date = new Date(2022, 8, 18)
3736
console.log(dayjs(date))
3837

39-
4038
// 对象复制
4139
const a = dayjs()
4240
const b = a.clone()
@@ -47,7 +45,6 @@ const c = dayjs()
4745
const d = dayjs(c)
4846
console.log(c, d)
4947

50-
5148
// 校验是否为日期
5249
console.log(dayjs('2022-01-33').isValid())
5350
// true, parsed to 2022-02-02

code/node/dayjs/demo-2.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ console.log(dayjs().month(0))
3636
console.log(dayjs().year())
3737
console.log(dayjs().year(2023))
3838

39-
4039
// get方法获取
4140
console.log(dayjs().get('year'))
4241
console.log(dayjs().get('month'))

code/node/dayjs/demo-3.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ console.log(dayjs().add(10, 'hour'))
1414
console.log(dayjs().subtract(7, 'year'))
1515
console.log(dayjs().subtract(2, 'month'))
1616

17-
1817
// 设置到一个时间的开始
1918
console.log(dayjs().startOf('year'))
2019
// 设置到一个时间的末尾

code/node/dayjs/demo-4.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ console.log(dayjs('2022-01-25').unix())
2121
// 获取当前月份包含的天数
2222
console.log(dayjs('2019-01-25').daysInMonth())
2323

24-
2524
// 原生Date对象
2625
console.log(dayjs('2019-01-25').toDate())

code/node/dayjs/demo-5.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ console.log(dayjs().isAfter(dayjs('2021-01-01')))
2020
// 比较年份
2121
console.log(dayjs().isAfter('2024-01-01', 'year'))
2222

23-
2423
// 是否为dayjs对象
2524
console.log(dayjs.isDayjs(dayjs()))
2625
console.log(dayjs.isDayjs(new Date()))

code/node/lodash/demo-string.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
* @private
44
*/
55

6-
7-
const _ = require('lodash')
6+
// const _ = require('lodash')
87

98
// camelCase: 小驼峰
109
// kebabCase: 转换为-连接,例如:Foo Bar ----> foo-bar

code/redis/cluster/docker-compose.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
## - docker-compose up -d
55
## 默认密码:123456
66
##
7-
##
87

98
version: '2'
109
services:

0 commit comments

Comments
 (0)