- <script language="JavaScript"> <!-- var str="xi nan shi you xue yuan china people" alert(str.replace(/\s[a-z]/g,function($1){return $1.toLocaleUpperCase()}).replace(/^[a-z]/,function($1){return $1.toLocaleUpperCase()})) //--> </script>
- <script language="JavaScript"> <!-- var str="xi nan shi you xue yuan china people" alert(str.replace(/\s[a-z]/g,function($1){return $1.toLocaleUpperCase()}).replace(/^[a-z]/,function($1){return $1.toLocaleUpperCase()})) //--> </script>