jS 快速截取年月日,年月日时分秒 bug爱好者 2021-07-01 5,455 阅读1分钟 接口原数据: 1. 截取年月日时分秒,去掉分秒 updatedAt.split('.')[0] 截取后: 2.截取年月日 updatedAt.split(' ')[0] 截取后