Discrepancy in JSON.stringify of date values in different browsers

前端 未结 4 502
忘掉有多难
忘掉有多难 2020-12-31 04:41

I have this code in an HTML page:

alert(JSON.stringify(new Date()));

I\'m including the latest json2.js (2009-09-29 version) in my page to

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-31 05:07

    Why not use the formatDate function in the Datepicker jQuery-UI plugin for jQuery to generate the format your server-side requires?

提交回复
热议问题