【JS】String转"yyyy/mm/dd"

String.replace(/(\d{4})(\d{2})(\d{2})/g,'$1/$2/$3');

posted @ 2020-06-11 11:12  乡屯米卒  阅读(208)  评论(0编辑  收藏  举报