diff options
author | Jad Joubran <joubran.jad@gmail.com> | 2021-05-04 10:35:29 +0200 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2021-05-04 20:53:42 +0800 |
commit | e3511f4ab5fd7c2227580442d157015136598a17 (patch) | |
tree | e60ff48742d49faa37e8b2cef7d6ffafbe8310d6 /files/zh-cn/web/javascript | |
parent | a6c089017ca98516a17c84995401800f2d33c4df (diff) | |
download | translated-content-e3511f4ab5fd7c2227580442d157015136598a17.tar.gz translated-content-e3511f4ab5fd7c2227580442d157015136598a17.tar.bz2 translated-content-e3511f4ab5fd7c2227580442d157015136598a17.zip |
Update index.html
Diffstat (limited to 'files/zh-cn/web/javascript')
-rw-r--r-- | files/zh-cn/web/javascript/reference/classes/index.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/files/zh-cn/web/javascript/reference/classes/index.html b/files/zh-cn/web/javascript/reference/classes/index.html index f1f7cf7d87..5c91d8d219 100644 --- a/files/zh-cn/web/javascript/reference/classes/index.html +++ b/files/zh-cn/web/javascript/reference/classes/index.html @@ -118,6 +118,8 @@ console.log(square.area); this.x = x; this.y = y; } + + static displayName = "Point"; static distance(a, b) { const dx = a.x - b.x; |