本文共 111 字,大约阅读时间需要 1 分钟。
date.replace(/(\d{4})(\d{2})(\d{2})/g,'$1-$2-$3');
转载于:https://www.cnblogs.com/Nyan-Workflow-FC/p/10570303.html