js中字符串怎么转化为日期var str = "2010-08-01" 转换日期格式str = str.replace(-g, '') "20100801" 创建日期对象var da2023-03-12JavaScript380