Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(zh-cn): batch replace '相关链接' to '参见' part 3 #17069

Merged
merged 3 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ console.log(tp.tripple()); // 'tp.tripple 不是一个函数'.

{{Compat}}

## 相关链接
## 参见

- [`class`表达式](/zh-CN/docs/Web/JavaScript/Reference/Operators/class)
- [`class`声明](/zh-CN/docs/Web/JavaScript/Reference/Statements/class)
- [Classes](/zh-CN/docs/Web/JavaScript/Reference/Classes)
- [`class` 表达式](/zh-CN/docs/Web/JavaScript/Reference/Operators/class)
- [`class` 声明](/zh-CN/docs/Web/JavaScript/Reference/Statements/class)
- [](/zh-CN/docs/Web/JavaScript/Reference/Classes)
4 changes: 0 additions & 4 deletions files/zh-cn/web/javascript/reference/errors/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@ Web 控制台中显示的错误可能包含指向下面相应页面的链接,
在此列表中,每个页面按名称(错误类型)和信息(更详细的容易理解的错误信息)列出。总之,这两者提供了理解和解决错误的线索。有关更多信息,请按照以下链接!

{{ListSubPages("/zh-CN/docs/Web/JavaScript/Reference/Errors")}}

## 相关链接

- [What went wrong? Troubleshooting JavaScript](/zh-CN/docs/Learn/JavaScript/First_steps/What_went_wrong): Beginner's introductory tutorial on fixing JavaScript errors.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ JSON.parse('{"foo" : 1 }');
JSON.parse('{"foo" : 1.0 }');
```

## 相关链接
## 参见

- {{jsxref("JSON")}}
- {{jsxref("JSON.parse()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ return Promise.resolve(true);
return Promise.reject(false);
```

## 相关链接
## 参见

- {{Glossary("constructor")}}
- [`new` operator](/zh-CN/docs/Web/JavaScript/Reference/Operators/new)
- [`new` 运算符](/zh-CN/docs/Web/JavaScript/Reference/Operators/new)
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,6 @@ func(); // undefined

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Function")}}
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ function adder(base /*, n2, ... */) {
}
```

## Specifications
## 规范

{{Specifications}}

## 浏览器兼容性

{{Compat}}

## 相关链接
## 参见

- [Function.length](/zh-CN/docs/JavaScript/Reference/Global_Objects/Function/length)
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,6 @@ fact(5); // 120

{{Compat}}

## 相关链接
## 参见

- ["ES6 In Depth: Arrow functions" on hacks.mozilla.org](https://hacks.mozilla.org/2015/06/es6-in-depth-arrow-functions/)
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ f(); // 6

{{Compat}}

## 相关链接
## 参见

- [Original proposal at ecmascript.org](http://wiki.ecmascript.org/doku.php?id=harmony:parameter_default_values)
- [函数](/zh-CN/docs/Web/JavaScript/Guide/Functions)指南
- [函数](/zh-CN/docs/Web/JavaScript/Reference/Functions)参考
- [剩余参数](/zh-CN/docs/Web/JavaScript/Reference/Functions/rest_parameters)
- [空值合并运算符(`??`)](/zh-CN/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing)
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ console.log(

{{Compat}}

## 相关链接
## 参见

- [setter](/zh-CN/docs/Web/JavaScript/Reference/Functions/set)
- {{jsxref("Operators/delete", "delete")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,11 @@ console.log(sortArguments(5, 3, 7, 1)); // shows 1, 3, 5, 7

{{Compat}}

## 相关链接

- [Spread operator](/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_operator) (also ‘`...`’)
- [Arguments object](/zh-CN/docs/Web/JavaScript/Reference/Functions/arguments)
- [Array](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array)
- [Functions](/zh-CN/docs/Web/JavaScript/Reference/Functions)
- [Original proposal at ecmascript.org](http://wiki.ecmascript.org/doku.php?id=harmony:rest_parameters)
- [JavaScript arguments object and beyond](http://javascriptweblog.wordpress.com/2011/01/18/javascripts-arguments-object-and-beyond/)
- [Destructuring assignment](/zh-CN/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment)
## 参见

- [函数](/zh-CN/docs/Web/JavaScript/Guide/Functions)指南
- [函数](/zh-CN/docs/Web/JavaScript/Reference/Functions)参考
- [展开语法(`...`)](/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax)
- [默认参数](/zh-CN/docs/Web/JavaScript/Reference/Functions/Default_parameters)
- {{jsxref("Functions/arguments", "arguments")}}
- {{jsxref("Array")}}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ var buf2 = buf1.slice(0);

{{Compat}}

## 相关链接
## 参见

- {{jsxref("ArrayBuffer")}}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Atomics.store(ta, 0, 12); // 12

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Atomics")}}
- {{jsxref("Atomics.load()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ slug: Web/JavaScript/Reference/Global_Objects/BigInt/BigInt

## 语法

```plain
BigInt(value);
```js-nolint
BigInt(value)
```

### 参数
Expand All @@ -35,6 +35,6 @@ BigInt(123);

{{Compat}}

## 相关链接
## 参见

- {{jsxref("BigInt")}} class
- {{jsxref("BigInt")}}
Original file line number Diff line number Diff line change
Expand Up @@ -251,16 +251,14 @@ nthPrime(20n);
// ↪ 73n
```

## 标准
## 规范

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

## 浏览器兼容性

{{Compat}}

## 相关链接
## 参见

- {{JSxRef("Number")}}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ myVar = x.valueOf(); // assigns false to myVar

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Object.prototype.valueOf()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dataview.buffer; // ArrayBuffer { byteLength: 8 }

{{Compat}}

## 相关链接
## 参见

- {{jsxref("DataView")}}
- {{jsxref("ArrayBuffer")}}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dataview3.byteLength; // 6 (due to the offset of the constructed DataView)

{{Compat}}

## 相关链接
## 参见

- {{jsxref("DataView")}}
- {{jsxref("ArrayBuffer")}}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dataview2.byteOffset; // 3 (在构造 DataView 时指定)

{{Compat}}

## 相关链接
## 参见

- {{jsxref("DataView")}}
- {{jsxref("ArrayBuffer")}}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ alert(day); // 25

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getUTCDate()")}}
- {{jsxref("Date.prototype.getUTCDay()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ console.log(weekday); // 1

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getUTCDate()")}}
- {{jsxref("Date.prototype.getUTCDay()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var year = today.getFullYear();

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getUTCFullYear()")}}
- {{jsxref("Date.prototype.setFullYear()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ alert(hours); // 23

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getUTCHours()")}}
- {{jsxref("Date.prototype.setHours()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ms = Today.getMilliseconds();

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getUTCMilliseconds()")}}
- {{jsxref("Date.prototype.setMilliseconds()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var minutes = Xmas95.getMinutes();

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getUTCMinutes()")}}
- {{jsxref("Date.prototype.setMinutes()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ console.log(month); // 11

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getUTCMonth()")}}
- {{jsxref("Date.prototype.setMonth()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var secs = Xmas95.getSeconds();

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getUTCSeconds()")}}
- {{jsxref("Date.prototype.setSeconds()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ console.log("Operation took " + (end.getTime() - start.getTime()) + " msec");

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.setTime()")}}
- {{jsxref("Date.prototype.valueOf()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var day = today.getUTCDate();

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getDate()")}}
- {{jsxref("Date.prototype.getUTCDay()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var weekday = today.getUTCDay();

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getUTCDate()")}}
- {{jsxref("Date.prototype.getDay()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var year = today.getUTCFullYear();

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getFullYear()")}}
- {{jsxref("Date.prototype.setFullYear()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var hours = today.getUTCHours();

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getHours()")}}
- {{jsxref("Date.prototype.setUTCHours()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var milliseconds = today.getUTCMilliseconds();

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getMilliseconds()")}}
- {{jsxref("Date.prototype.setUTCMilliseconds()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var minutes = today.getUTCMinutes();

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getMinutes()")}}
- {{jsxref("Date.prototype.setUTCMinutes()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var month = today.getUTCMonth();

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getMonth()")}}
- {{jsxref("Date.prototype.setUTCMonth()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var seconds = today.getUTCSeconds();

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getSeconds()")}}
- {{jsxref("Date.prototype.setUTCSeconds()")}}
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 @@ -46,7 +46,7 @@ theBigDay.setDate(32); // 1962-08-01

{{Compat}}

## 相关链接
## 参见

- {{jsxref("Date.prototype.getDate()")}}
- {{jsxref("Date.prototype.setUTCDate()")}}
Loading