var a="sdad。sadas。dasdsadsa" var s=a.split("。"); for(var i=0;i s[i]=s[i]+""; } var ss=''"; for(var i=0;i ss+=s[i]; } alert(ss);
String str="abcdef.ghijklmn.opqrst.uvwxyz";str.replace(".","\r\n");结果str=“abcdefghijklmnopqrstuvwxyz”