-
-
Save diaolizhi/17deddba40854f251ec2a4c0ddcce3f3 to your computer and use it in GitHub Desktop.
JavaScript 格式化后端返回的时间
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Date(data.updated).toLocaleString(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment