-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from GuoXiCheng/dev-c
add reflect md
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 反射 | ||
|
||
## 什么是反射 | ||
|
||
反射是一个内置的全局对象,它提供了一些与操作对象相关的静态方法,这些方法与代理捕获器的方法一一对应。 | ||
|
||
::: info | ||
反射方法并不局限于代理捕获器中使用。 | ||
|
||
大多数的反射方法在 Object 上也有对应的方法,反射方法适用于细粒度的对象控制与操作。 | ||
::: | ||
|
||
## 直接使用反射 | ||
|
||
<<< @/../projects/javascript-sandbox/src/proxy-and-reflect/reflect.ts#direct-use-reflect | ||
|
||
## 代理捕获器中使用反射 | ||
|
||
<<< @/../projects/javascript-sandbox/src/proxy-and-reflect/reflect.ts#use-reflect-in-proxy-handler |