Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dc51685

Browse filesBrowse files
author
houlinjiang
committed
9.6
1 parent 01249c3 commit dc51685
Copy full SHA for dc51685

1 file changed

+2-1Lines changed: 2 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ Other Style Guides
12151215
```
12161216

12171217
<a name="constructors--no-useless"></a><a name="9.5"></a>
1218-
- [9.5](#constructors--no-useless) 如果没有具体说明,类有默认的构造方法。一个空的构造函数或只是继承父类的构造函数是不需要写的。 eslint: [`no-useless-constructor`](http://eslint.org/docs/rules/no-useless-constructor)
1218+
- [9.5](#constructors--no-useless) 如果没有具体说明,类有默认的构造方法。一个空的构造函数或只是代表父类的构造函数是不需要写的。 eslint: [`no-useless-constructor`](http://eslint.org/docs/rules/no-useless-constructor)
12191219

12201220
```javascript
12211221
// bad
@@ -1229,6 +1229,7 @@ Other Style Guides
12291229
12301230
// bad
12311231
class Rey extends Jedi {
1232+
// 这种构造函数是不需要写的
12321233
constructor(...args) {
12331234
super(...args);
12341235
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.