##HarmonyOS Next实战##HarmonyOS SDK应用服务##教育## 目标:实现千分分隔符工具封装 NumberFormat 创建数字格式化对象 constructor(locale: string | Array<string>, options?: NumberOptions) locale:表示区域信息的字符串,由语言、脚本、国家或地区组成。 options:创建数字格式化对象时可设置的配置项。 示例 // 使用 en-GB locale创建NumberFormat对象,style设置为decimal,notation设置为scientific let n...