以Javascript格式输出日期作为字符串

could you please advice how to output 2012-08-11 in JavaScript as a string without it
showing the results as integer i.e. 1993. I have tried using the .toString() function but
that doesn't work - it stills output it as 1993.
I'm parsing the date 2012-08-11 to a JavaScript function via PHP.

查看全部
dsuxcxqep31023992
dsuxcxqep31023992
2012/08/25 23:44
  • date
  • string
  • php
  • tostring
  • javascript
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复