/^(\d{4})-(\d{2})-(\d{2})/.exec("2023-08-17 16:44:17")
["2023-08-17", "2023", "08", "17"]
/(\d{4})-(\d{2})-(\d{2})/.exec("2023-08-17 16:44:17")
["2023-08-17", "2023", "08", "17"]
/\d{4}-\d{2}-\d{2}/.exec("2023-08-17 16:44:17")返回是数组
时间: 2024-10-09 19:41:07