Skip to content

Commit

Permalink
apply some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 committed Nov 23, 2023
1 parent 580f01f commit b8c745b
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,9 @@ nthPrime(20n);
// ↪ 73n
```

## 标准
## 规范

| 标准 | 状态 |
| ------------------------------------------------------------- | --------- |
| [BigInt](https://tc39.es/proposal-bigint/#sec-bigint-objects) | 第 4 阶段 |
{{Specifications}}

## 浏览器兼容性

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@ slug: Web/JavaScript/Reference/Global_Objects/Date/parse

显式调用:

```plain
```js-nolint
Date.parse(dateString)
```

`隐式调用:`

```plain
new Date(dateString).getTime()
```

### 参数

- `dateString`
Expand Down Expand Up @@ -147,10 +141,6 @@ Date.parse("Thu, 01 Jan 1970 00:00:00 GMT-0400");

{{Compat}}

## 兼容性提示

Firefox 49 修改了解析 2 位数年份的方式,从和 Internet Explorer 一致改为和 Google Chrome 浏览器一致。现在,2 位数的年份小于等于 `50` 的将会被解析为 21 世纪的年份。比如,`04/16/17`,在之前会被解析为 1917 年 4 月 16 日,现在将被解析为 2017 年 4 月 16 日。为了避免任何可能的同步问题或者有歧义的年份,推荐使用 ISO 8601 格式如 "2017-04-16" ([Firefox bug 1265136](https://bugzil.la/1265136))。

## 参见

- {{jsxref("Date.UTC()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Math.asin(2); // NaN

## 参见

- {{jsxref("Math.asin()")}}
- {{jsxref("Math.acos()")}}
- {{jsxref("Math.atan()")}}
- {{jsxref("Math.atan2()")}}
- {{jsxref("Math.cos()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ slug: Web/JavaScript/Reference/Global_Objects/Math/exp

## 语法

```plain
```js-nolint
Math.exp(x)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ slug: Web/JavaScript/Reference/Global_Objects/Math/log1p

## 语法

```plain
```js-nolint
Math.log1p(x)
```

Expand All @@ -22,7 +22,7 @@ Math.log1p(x)

## 描述

如果参数的值小于`-1`, 则返回 `NaN.`
如果参数的值小于 `-1`则返回 `NaN`

函数 `y = log(x+1)` 的图形是这样的:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ slug: Web/JavaScript/Reference/Global_Objects/parseFloat

## 语法

```plain
```js-nolint
parseFloat(string)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ slug: Web/JavaScript/Reference/Global_Objects/Proxy/Proxy

## 语法

```plain
```js-nolint
new Proxy(target, handler)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,4 @@ Reflect.set(duck, 'eyes', 'black');

## 参见

- {{jsxref("Proxy")}} 全局对象。
- {{jsxref("Proxy.handler", "处理器")}} 对象。
- {{jsxref("Proxy")}}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ slug: Web/JavaScript/Reference/Global_Objects/unescape

已废弃的**`unescape()`** 方法计算生成一个新的字符串,其中的十六进制转义序列将被其表示的字符替换。上述的转义序列就像{{jsxref("escape")}}里介绍的一样。因为 `unescape` 已经废弃,建议使用 {{jsxref("decodeURI")}}或者{{jsxref("decodeURIComponent")}} 替代本方法。

> **备注:** 不要使用`unescape`去解码 URL,使用`decodeURI``decodeURIComponent`替代。
> **备注:** 不要使用 `unescape` 去解码 URL,请使用 {{jsxref("decodeURI()")}} 或 {{jsxref("decodeURIComponent()")}} 替代。
## 语法

Expand Down

0 comments on commit b8c745b

Please sign in to comment.