From fe3b27582826c74f20ebf1f5447f69819010c6a5 Mon Sep 17 00:00:00 2001 From: sunyaozu Date: Fri, 10 Mar 2023 16:44:12 +0800 Subject: [PATCH] fixed bb23e91 from https://gitee.com/ningningW/docs-yuanma/pulls/15859 fixed b82e2d1 from https://gitee.com/sunyaozu/docs/pulls/15858 fix code sample instance Signed-off-by: sunyaozu --- zh-cn/application-dev/reference/apis/js-apis-i18n.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-i18n.md b/zh-cn/application-dev/reference/apis/js-apis-i18n.md index 44256b9542..aed567cfde 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-i18n.md +++ b/zh-cn/application-dev/reference/apis/js-apis-i18n.md @@ -1194,7 +1194,7 @@ getInstance(locale?:string): IndexUtil **示例:** ```js - let indexUtil= I18n.getInstance("zh-CN"); + let indexUtil = I18n.getInstance("zh-CN"); ``` @@ -1267,7 +1267,7 @@ getIndex(text: string): string **示例:** ```js - let indexUtil= I18n.getInstance("zh-CN"); + let indexUtil = I18n.getInstance("zh-CN"); let index = indexUtil.getIndex("hi"); // index = "H" ``` @@ -1382,7 +1382,7 @@ first(): number **示例:** ```js - let iterator = i18n.getLineInstance("en"); + let iterator = I18n.getLineInstance("en"); iterator.setLineBreakText("Apple is my favorite fruit."); let firstPos = iterator.first(); // firstPos = 0 ``` -- GitLab