Skip to content

Commit edb442f

Browse files
committed
docs(stdlib): fix date
1 parent e02c14e commit edb442f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/stdlib/date.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Date 对象
22

3-
`Date`对象是 JavaScript 原生的时间库。它以1970年1月1日00:00:00作为时间的零点,可以表示的时间范围是前后各1亿天(单位为毫秒)。
3+
`Date`对象是 JavaScript 原生的时间库。它以国际标准时间(UTC)1970年1月1日00:00:00作为时间的零点,可以表示的时间范围是前后各1亿天(单位为毫秒)。
44

55
## 普通函数的用法
66

docs/types/function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ multiline(f);
312312

313313
作用域(scope)指的是变量存在的范围。在 ES5 的规范中,JavaScript 只有两种作用域:一种是全局作用域,变量在整个程序中一直存在,所有地方都可以读取;另一种是函数作用域,变量只在函数内部存在。ES6 又新增了块级作用域,本教程不涉及。
314314

315-
函数外部声明的变量就是全局变量(global variable),它可以在函数内部读取。
315+
对于顶层函数来说,函数外部声明的变量就是全局变量(global variable),它可以在函数内部读取。
316316

317317
```javascript
318318
var v = 1;

0 commit comments

Comments
 (0)