Skip to content

Commit 786148c

Browse files
committed
docs: fix wangdoc#155
1 parent ff74e42 commit 786148c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/stdlib/number.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Number.MIN_SAFE_INTEGER // -9007199254740991
177177
该方法还可以接受第二个参数配置对象,用来定制指定用途的返回字符串。该对象的`style`属性指定输出样式,默认值是`decimal`,表示输出十进制形式。如果值为`percent`,表示输出百分数。
178178

179179
```javascript
180-
(123).toLocaleString('zh-Hans-CN', { style: 'persent' })
180+
(123).toLocaleString('zh-Hans-CN', { style: 'percent' })
181181
// "12,300%"
182182
```
183183

0 commit comments

Comments
 (0)