VBScript RTrim function
RTrim function to remove the right of the box.
Tip: See LTrim and Trim function.
grammar
RTrim(string)
参数 | 描述 |
---|---|
string | 必需。字符串表达式。 |
Examples
Examples
<script type="text/vbscript">
fname=" Jack "
document.write("Hello" & RTrim(fname) & "and welcome.")
</script>
fname=" Jack "
document.write("Hello" & RTrim(fname) & "and welcome.")
</script>
Examples of the above output:
Hello Jackand welcome.
try it"
Complete VBScript Reference