标签:replace AC bsp func 时间 转换 nbsp hang 时间格式
//yyyyMMdd 转换为 yyyy-MM-dd function changeDate(str){ return str.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3"); }
时间格式转换
原文地址:https://www.cnblogs.com/SunShineM/p/9059269.html