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