'Thu May 12 2016 08:00:00 GMT+0800 (中国标准时间)'--此格式日期无法传到java后台,须格式化,方法如下
var d = new Date('Thu May 12 2016 08:00:00 GMT+0800 (中国标准时间)');
var datetime=d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds();
参考文档:
https://www.cnblogs.com/gudi/p/8031219.html
表示感谢!!
博客指出 'Thu May 12 2016 08:00:00 GMT+0800 (中国标准时间)' 格式的日期无法传到 Java 后台,需要进行格式化,并给出参考文档链接。
4454

被折叠的 条评论
为什么被折叠?



