删除字符串端部的空格
- <html>
- <body>
- <script type="text/vbscript">
- fname=" Bill "
- document.write("Hello" & trim(fname) & "Gates<br />")
- document.write("Hello" & rtrim(fname) & "Gates<br />")
- document.write("Hello" & ltrim(fname) & "Gates<br />")
- </script>
- </body>
- </html>