js中去除指点字符串的方法

var Str= "abcdefg";
if(Str.indexOf("abc")>=0){
Str=Str.replace("abc","");
}

posted @ 2021-05-31 13:56  悻南  阅读(103)  评论(0)    收藏  举报