1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

fix: line feed causes HTML rendering error view

This commit is contained in:
CondorHero 2022-09-01 14:45:02 +08:00 committed by GitHub
parent eba1ada2e0
commit 5730890e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -761,8 +761,7 @@ class Counter {
} }
``` ```
上面代码中,`#x`是一个私有属性,它的读写都通过`get #x()`和`set 上面代码中,`#x`是一个私有属性,它的读写都通过`get #x()``set #x()`操作另一个私有属性`#xValue`来完成。
#x()`操作另一个私有属性`#xValue`来完成。
私有属性不限于从`this`引用,只要是在类的内部,实例也可以引用私有属性。 私有属性不限于从`this`引用,只要是在类的内部,实例也可以引用私有属性。