mirror of
https://github.com/wangdoc/es6-tutorial.git
synced 2025-12-20 01:12:28 +08:00
docs(object): fixed typo
Some checks failed
ES6 tutorial CI / Generating pages (push) Has been cancelled
Some checks failed
ES6 tutorial CI / Generating pages (push) Has been cancelled
This commit is contained in:
@@ -783,7 +783,7 @@ actual.cause; // 'Error cause'
|
||||
|
||||
上面示例中,生成 Error 实例时,使用描述对象给出`cause`属性,写入报错的原因。然后,就可以从实例对象上读取这个属性。
|
||||
|
||||
`casue`属性可以放置任意内容,不必一定是字符串。
|
||||
`cause`属性可以放置任意内容,不必一定是字符串。
|
||||
|
||||
```javascript
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user