登 录
想了一会,发现技能放久了不用会生锈地。
var theDateString = "2004-9-6";
theDateString = theDateString.replace(/-(\d{1})(?=-|$)/g, "-0$1");
抱歉!评论已关闭.