From e3511f4ab5fd7c2227580442d157015136598a17 Mon Sep 17 00:00:00 2001 From: Jad Joubran Date: Tue, 4 May 2021 10:35:29 +0200 Subject: Update index.html --- files/zh-cn/web/javascript/reference/classes/index.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'files/zh-cn/web/javascript') 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; -- cgit v1.2.3-54-g00ecf