aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript
diff options
context:
space:
mode:
authorJad Joubran <joubran.jad@gmail.com>2021-05-04 10:35:29 +0200
committerIrvin <irvinfly@gmail.com>2021-05-04 20:53:42 +0800
commite3511f4ab5fd7c2227580442d157015136598a17 (patch)
treee60ff48742d49faa37e8b2cef7d6ffafbe8310d6 /files/zh-cn/web/javascript
parenta6c089017ca98516a17c84995401800f2d33c4df (diff)
downloadtranslated-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.html2
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;