VBScript Space 函數

Space 函數返回由指定數量的空格組成的字串。
語法
Space(number)
參數 | 描述 |
---|---|
number | 必需。字串中的空格數量。 |
實例 1
Dim txt
txt=Space(10)
document.write(txt)
Output:
" "
txt=Space(10)
document.write(txt)
Output:
" "

Space 函數返回由指定數量的空格組成的字串。
參數 | 描述 |
---|---|
number | 必需。字串中的空格數量。 |