mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
docs: edit decorator
This commit is contained in:
parent
546b9d3bce
commit
f13a2b50a7
@ -1,5 +1,7 @@
|
||||
# 修饰器
|
||||
|
||||
[说明] Decorator 提案经过了大幅修改,目前还没有定案,不知道语法会不会再变。下面的内容完全依据以前的提案,已经有点过时了。等待定案以后,需要完全重写。
|
||||
|
||||
## 类的修饰
|
||||
|
||||
许多面向对象的语言都有修饰器(Decorator)函数,用来修改类的行为。目前,有一个[提案](https://github.com/tc39/proposal-decorators)将这项功能,引入了 ECMAScript。
|
||||
|
@ -27,13 +27,13 @@
|
||||
1. [async 函数](#docs/async)
|
||||
1. [Class 的基本语法](#docs/class)
|
||||
1. [Class 的继承](#docs/class-extends)
|
||||
1. [Decorator](#docs/decorator)
|
||||
1. [Module 的语法](#docs/module)
|
||||
1. [Module 的加载实现](#docs/module-loader)
|
||||
1. [编程风格](#docs/style)
|
||||
1. [读懂规格](#docs/spec)
|
||||
1. [ArrayBuffer](#docs/arraybuffer)
|
||||
1. [最新提案](#docs/proposals)
|
||||
1. [Decorator](#docs/decorator)
|
||||
1. [参考链接](#docs/reference)
|
||||
|
||||
## 其他
|
||||
|
Loading…
x
Reference in New Issue
Block a user