We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 546b9d3 commit f13a2b5Copy full SHA for f13a2b5
docs/decorator.md
@@ -1,5 +1,7 @@
1
# 修饰器
2
3
+[说明] Decorator 提案经过了大幅修改,目前还没有定案,不知道语法会不会再变。下面的内容完全依据以前的提案,已经有点过时了。等待定案以后,需要完全重写。
4
+
5
## 类的修饰
6
7
许多面向对象的语言都有修饰器(Decorator)函数,用来修改类的行为。目前,有一个[提案](https://github.com/tc39/proposal-decorators)将这项功能,引入了 ECMAScript。
sidebar.md
@@ -27,13 +27,13 @@
27
1. [async 函数](#docs/async)
28
1. [Class 的基本语法](#docs/class)
29
1. [Class 的继承](#docs/class-extends)
30
-1. [Decorator](#docs/decorator)
31
1. [Module 的语法](#docs/module)
32
1. [Module 的加载实现](#docs/module-loader)
33
1. [编程风格](#docs/style)
34
1. [读懂规格](#docs/spec)
35
1. [ArrayBuffer](#docs/arraybuffer)
36
1. [最新提案](#docs/proposals)
+1. [Decorator](#docs/decorator)
37
1. [参考链接](#docs/reference)
38
39
## 其他
0 commit comments