Lines Matching refs:RelativeTimeFormat
761 ## RelativeTimeFormat<sup>8+</sup>
775 // 使用系统locale创建RelativeTimeFormat对象
776 let relativetimefmt = new intl.RelativeTimeFormat();
799 // 使用 zh-CN locale创建RelativeTimeFormat对象,localeMatcher设置为lookup,numeric设置为always,style设置为long
800 …let relativeTimeFormat = new intl.RelativeTimeFormat("zh-CN", {"localeMatcher": "lookup", "numeric…
829 // 使用 zh-CN locale创建RelativeTimeFormat对象
830 let relativetimefmt = new intl.RelativeTimeFormat("zh-CN");
861 // 使用 en locale创建RelativeTimeFormat对象,numeric设置为auto
862 let relativetimefmt = new intl.RelativeTimeFormat("en", {"numeric": "auto"});
871 获取RelativeTimeFormat对象的格式化选项。
881 | [RelativeTimeFormatResolvedOptions](#relativetimeformatresolvedoptions8) | RelativeTimeFormat&nbs…
885 // 使用 en-GB locale创建RelativeTimeFormat对象
886 let relativetimefmt= new intl.RelativeTimeFormat("en-GB", { style: "short" });
887 // 获取RelativeTimeFormat对象配置项
915 表示RelativeTimeFormat对象可设置的属性。