-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update datetimeformat to remove {{page}} #10819
Conversation
Preview URLs Flaws (7)URL:
External URLs (1)URL:
(comment last updated: 2022-12-30 12:05:08) |
- {{jsxref("Intl/DateTimeFormat/format", "Intl.DateTimeFormat.prototype.format()")}} | ||
- : getter 函数,根据此 {{jsxref("Intl/DateTimeFormat", "DateTimeFormat")}} 对象的区域设置和格式化选项格式化日期。 | ||
- {{jsxref("Intl/DateTimeFormat/formatToParts", "Intl.DateTimeFormat.prototype.formatToParts()")}} | ||
- : 返回一个对象{{jsxref("Array", "数组")}},其中的日期字符串部分可以用于自定义区域感知(local-aware)的格式。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
再改改,然后把签名的macro改成 {{jsxref("Array", "数组", "", 1)}}
- {{jsxref("Intl/DateTimeFormat/formatToParts", "Intl.DateTimeFormat.prototype.formatToParts()")}} | ||
- : 返回一个对象{{jsxref("Array", "数组")}},其中的日期字符串部分可以用于自定义区域感知(local-aware)的格式。 | ||
- {{jsxref("Intl/DateTimeFormat/resolvedOptions", "Intl.DateTimeFormat.prototype.resolvedOptions()")}} | ||
- : 返回一个新对象,其进行初始化时属性能够反馈区域和格式化选项。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同
- {{jsxref("Intl/DateTimeFormat/formatRange", "Intl.DateTimeFormat.prototype.formatRange()")}} | ||
- : 此方法接收两个 [Date](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date) 对象,并根据实例化 {{jsxref("Intl/DateTimeFormat", "DateTimeFormat")}} 时提供的区域和选项,以最简洁的方式格式化日期范围。 | ||
- {{jsxref("Intl/DateTimeFormat/formatRangeToParts", "Intl.DateTimeFormat.prototype.formatRangeToParts()")}} | ||
- : 此方法接收两个 [Date](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date) 对象,并返回一个对象数组,该数组包含代表被格式化日期范围的每一部分的本地特定标记。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同
files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Jason Ren <40999116+jasonren0403@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Description
remove page macro and update translation
Motivation
Additional details
Related issues and pull requests
#3893