1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 03:02:21 +00:00

edit decorator

This commit is contained in:
ruanyf 2015-09-26 08:08:53 +08:00
parent 57e99d9cf6
commit 078a0a5f40

View File

@ -42,10 +42,10 @@ function testable(isTestable) {
}
}
@testable(true) class MyTestableClass () {}
@testable(true) class MyTestableClass {}
console.log(MyTestableClass.isTestable) // true
@testable(false) class MyClass () {}
@testable(false) class MyClass {}
console.log(MyClass.isTestable) // false
```