toLocaleDateString()不返回dd / mm / yyyy格式 [英] toLocaleDateString() is not returning dd/mm/yyyy format
问题描述
我已经使用 toLocaleDateString()
来显示rss feed的日期,不显示 dd / mm / yyyy $所有浏览器中的c $ c>格式, safari 和 mozila 显示不同,但 chrome 正确显示。
Hi I have used toLocaleDateString()
to display a date from a rss feed,t its not showing dd/mm/yyyy
format in all browser, safari and mozila its showing differently but chrome it is showing correctly.
推荐答案
以前已经回答过:
根据Mozilla文档,格式可能有所不同很大程度上取决于用户的位置和计算机设置。
According to the Mozilla documentation, the format can vary wildly depending on the user's location and computer settings.
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleDateString
确切的格式取决于平台,区域设置和用户设置。
The exact format depends on the platform, locale and user's settings.
。toLocaleDateString()在Firefox中不工作
这篇关于toLocaleDateString()不返回dd / mm / yyyy格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!