var date = "2015-11-11 00:00:00";
var newDate=/\d{4}-\d{1,2}-\d{1,2}/g.exec(date)
newDate="2015-11-11";
去除时间字符串的时分秒
最新推荐文章于 2024-07-13 03:06:59 发布
var date = "2015-11-11 00:00:00";
var newDate=/\d{4}-\d{1,2}-\d{1,2}/g.exec(date)
newDate="2015-11-11";