From 501ab787555f6c65492ee40d2f5e097ecdbe3e3d Mon Sep 17 00:00:00 2001 From: Elan Bin Date: Tue, 13 Jul 2021 14:15:22 +0800 Subject: Fix Web/JavaScript/Reference/Operators/instanceof, zh-CN (#1517) the pre label used 'dir="rtl"' attribute, cause code written from the right to the left --- files/zh-cn/web/javascript/reference/operators/instanceof/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/zh-cn/web/javascript/reference/operators/instanceof/index.html b/files/zh-cn/web/javascript/reference/operators/instanceof/index.html index 1cd33e380f..a1e3c5a538 100644 --- a/files/zh-cn/web/javascript/reference/operators/instanceof/index.html +++ b/files/zh-cn/web/javascript/reference/operators/instanceof/index.html @@ -113,7 +113,7 @@ myDate instanceof String; // 返回 false

下面的代码创建了一个类型 Car,以及该类型的对象实例 mycar. instanceof 运算符表明了这个 mycar 对象既属于 Car 类型,又属于 Object 类型。

-
function Car(make, model, year) {
+
function Car(make, model, year) {
   this.make = make;
   this.model = model;
   this.year = year;
-- 
cgit v1.2.3-54-g00ecf