> VB语言在线手册 > 删除字符串端部的空格
<!DOCTYPE HTML>
<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>