diff --git a/files/zh-cn/web/javascript/reference/global_objects/bigint/index.md b/files/zh-cn/web/javascript/reference/global_objects/bigint/index.md index 67c0fcebb2d775..af1637ab1cfc2f 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/bigint/index.md +++ b/files/zh-cn/web/javascript/reference/global_objects/bigint/index.md @@ -251,11 +251,9 @@ nthPrime(20n); // ↪ 73n ``` -## 标准 +## 规范 -| 标准 | 状态 | -| ------------------------------------------------------------- | --------- | -| [BigInt](https://tc39.es/proposal-bigint/#sec-bigint-objects) | 第 4 阶段 | +{{Specifications}} ## 浏览器兼容性 diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.md b/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.md index 933fd115b025a9..4d092199774429 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.md +++ b/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.md @@ -15,16 +15,10 @@ slug: Web/JavaScript/Reference/Global_Objects/Date/parse 显式调用: -```plain +```js-nolint Date.parse(dateString) ``` -`隐式调用:` - -```plain -new Date(dateString).getTime() -``` - ### 参数 - `dateString` @@ -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()")}} diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.md b/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.md index 4f63c67e77e895..e428f689f3dfb9 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.md +++ b/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.md @@ -53,7 +53,7 @@ Math.asin(2); // NaN ## 参见 -- {{jsxref("Math.asin()")}} +- {{jsxref("Math.acos()")}} - {{jsxref("Math.atan()")}} - {{jsxref("Math.atan2()")}} - {{jsxref("Math.cos()")}} diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.md b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.md index cef43cbeac0cad..ca76bd014677ee 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.md +++ b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.md @@ -11,7 +11,7 @@ slug: Web/JavaScript/Reference/Global_Objects/Math/exp ## 语法 -```plain +```js-nolint Math.exp(x) ``` diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.md b/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.md index 5f91d3f9a12353..0a640008a81c90 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.md +++ b/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.md @@ -11,7 +11,7 @@ slug: Web/JavaScript/Reference/Global_Objects/Math/log1p ## 语法 -```plain +```js-nolint Math.log1p(x) ``` @@ -22,7 +22,7 @@ Math.log1p(x) ## 描述 -如果参数的值小于`-1`, 则返回 `NaN.` +如果参数的值小于 `-1`,则返回 `NaN`。 函数 `y = log(x+1)` 的图形是这样的: diff --git a/files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.md b/files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.md index b5239db64ed4e0..e9c161a8ce8edc 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.md +++ b/files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.md @@ -11,7 +11,7 @@ slug: Web/JavaScript/Reference/Global_Objects/parseFloat ## 语法 -```plain +```js-nolint parseFloat(string) ``` diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/index.md b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/index.md index 4b68dd534a38b3..a340140dad6a4f 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/index.md +++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/index.md @@ -7,7 +7,7 @@ slug: Web/JavaScript/Reference/Global_Objects/Proxy/Proxy ## 语法 -```plain +```js-nolint new Proxy(target, handler) ``` diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/index.md b/files/zh-cn/web/javascript/reference/global_objects/reflect/index.md index f886949f9ac3c5..7d6c095c306397 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/reflect/index.md +++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/index.md @@ -86,5 +86,4 @@ Reflect.set(duck, 'eyes', 'black'); ## 参见 -- {{jsxref("Proxy")}} 全局对象。 -- {{jsxref("Proxy.handler", "处理器")}} 对象。 +- {{jsxref("Proxy")}} diff --git a/files/zh-cn/web/javascript/reference/global_objects/unescape/index.md b/files/zh-cn/web/javascript/reference/global_objects/unescape/index.md index cd8030d92affff..efa014527395df 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/unescape/index.md +++ b/files/zh-cn/web/javascript/reference/global_objects/unescape/index.md @@ -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()")}} 替代。 ## 语法