乐趣区

将2018-12-25转化成2018/12/25

var today = “2018-12-25”;var reg = new RegExp(‘-‘ , “g”)var newstr = today.replace(reg , ‘/’);

退出移动版