未验证 提交 9a31ff87 编写于 作者: O openharmony_ci 提交者: Gitee

!8345 modify percent style num format

Merge pull request !8345 from 杨清/master
...@@ -1204,7 +1204,7 @@ describe('intlTest', function () { ...@@ -1204,7 +1204,7 @@ describe('intlTest', function () {
let numfmt = new Intl.NumberFormat('en-CN', { style: 'percent', maximumFractionDigits: 2, let numfmt = new Intl.NumberFormat('en-CN', { style: 'percent', maximumFractionDigits: 2,
minimumIntegerDigits: 7 }); minimumIntegerDigits: 7 });
console.log('formatNumber_test_2300 ' + numfmt.format(123456.789)); console.log('formatNumber_test_2300 ' + numfmt.format(123456.789));
expect(numfmt.format(123456.789)).assertEqual('0,123,456.79%'); expect(numfmt.format(123456.789)).assertEqual('12,345,678.9%');
}) })
/* * /* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册