Skip to content

Instantly share code, notes, and snippets.

@diaolizhi
Created April 28, 2019 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diaolizhi/17deddba40854f251ec2a4c0ddcce3f3 to your computer and use it in GitHub Desktop.
Save diaolizhi/17deddba40854f251ec2a4c0ddcce3f3 to your computer and use it in GitHub Desktop.
JavaScript 格式化后端返回的时间
new Date(data.updated).toLocaleString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment