VBScript Len 函数
定义和用法
Len 函数可返回字符串中字符的数目。
အပြောအဆ
Len(string|varname)
အချက် | အကြောင်း |
---|---|
string | ဘာသာစကား အစကား |
varname | ဘာသာစကား အမည် |
အကျိုးသက်
အခြေခံ ၁
dim txt txt="This is a beautiful day!" document.write(Len(txt))
ထုတ်သွင်းခြင်း
၂၄
အခြေခံ ၂
document.write(Len("This is a beautiful day!"))
ထုတ်သွင်းခြင်း
၂၄