js将字符串有上午 下午的字样转换成时间格式var str ='20120812 下午 04:13:15'var date = new Date(str.replace([^d]+g,','))console.log(date)代码演2023-04-22JavaScript180