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 4d6121feb87a95c9672515614af2e52d0c07be58..ba30c0778a1c0a056e16da4c7ac08605853c5ab5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-i18n.md +++ b/zh-cn/application-dev/reference/apis/js-apis-i18n.md @@ -698,7 +698,8 @@ static getLocationName(number: string, locale: string): string **示例:** ```js - var location = i18n.PhoneNumberFormat.getLocationName('15812312345', 'zh-CN'); + var phonenumberfmt = new i18n.PhoneNumberFormat("CN"); + phonenumberfmt.getLocationName("15812312345", "zh-CN"); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-intl.md b/zh-cn/application-dev/reference/apis/js-apis-intl.md index 8a9b2acbefc9f9582e4ab7c72cbd056b6ebafebc..9157c68e4501463b98633d1c86451b6e455c0f44 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-intl.md +++ b/zh-cn/application-dev/reference/apis/js-apis-intl.md @@ -540,7 +540,7 @@ constructor(locale: string | Array<string>, options?: PluralRulesOptions) **示例:** ```js - var pluralRules= new Intl.PluraRules("zh-CN", {"localeMatcher": "lookup", "type": "cardinal"}); + var pluralRules= new Intl.PluralRules("zh-CN", {"localeMatcher": "lookup", "type": "cardinal"}); ```