str.replace(/需要替换的字符串/g,"新字符串")
var effectTime = $("#effectTime").val();
effectTime=effectTime.replace(/-/g,"/");
str.replace(/需要替换的字符串/g,"新字符串")
var effectTime = $("#effectTime").val();
effectTime=effectTime.replace(/-/g,"/");