aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;