js 替换多个字符串

js 替换多个字符串

var string=‘2000年01月01日’ 转变成2000-01-01; string=string.replace(年|月|日g,'-') 注意      g  是正则写法; 中间用
JavaScript180