From f13a2b50a7b0de19092e1e815df28fa3ac38692a Mon Sep 17 00:00:00 2001 From: ruanyf Date: Sat, 9 Feb 2019 20:37:44 +0800 Subject: [PATCH] docs: edit decorator --- docs/decorator.md | 2 ++ sidebar.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/decorator.md b/docs/decorator.md index d2daa92..38c1c0f 100644 --- a/docs/decorator.md +++ b/docs/decorator.md @@ -1,5 +1,7 @@ # 修饰器 +[说明] Decorator 提案经过了大幅修改,目前还没有定案,不知道语法会不会再变。下面的内容完全依据以前的提案,已经有点过时了。等待定案以后,需要完全重写。 + ## 类的修饰 许多面向对象的语言都有修饰器(Decorator)函数,用来修改类的行为。目前,有一个[提案](https://github.com/tc39/proposal-decorators)将这项功能,引入了 ECMAScript。 diff --git a/sidebar.md b/sidebar.md index 49f9631..baf3210 100644 --- a/sidebar.md +++ b/sidebar.md @@ -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) ## 其他