<script language="JavaScript">
<!--
String.prototype.replaceAll = function(s1,s2){
return this.replace(new RegExp(s1,"gm"),s2);
}
a = " ";
if(a.replaceAll(" ","").length==0){
alert("全是空格");
}
//-->
</script>
<!--
String.prototype.replaceAll = function(s1,s2){
return this.replace(new RegExp(s1,"gm"),s2);
}
a = " ";
if(a.replaceAll(" ","").length==0){
alert("全是空格");
}
//-->
</script>