js中去除从数据库里取出的日期格式中的时分秒var time_str= '2014-9-19 13:19:21'var temp = new Date(time_str)var t = temp.getFullYear()+"-"+(temp.2023-02-21JavaScript280