Fungsi VBScript rtrim
Rtrim berfungsi untuk menghilangkan kanan kotak.
Tip: Lihat ltrim dan Potong fungsi.
tatabahasa
RTrim(string)
参数 | 描述 |
---|---|
string | 必需。字符串表达式。 |
contoh
contoh
<script type="text/vbscript">
fname=" Jack "
document.write("Hello" & RTrim(fname) & "and welcome.")
</script>
fname=" Jack "
document.write("Hello" & RTrim(fname) & "and welcome.")
</script>
Contoh output di atas:
Hello Jackand welcome.
Coba »
Lengkap VBScript Referensi