LCase
将输入的字符串转换为小写字母后,LCase函数将返回字符串。
语法
Lcase(String)
例
<!DOCTYPE html> <html> <body> <script language = "vbscript" type = "text/vbscript"> var = "Microsoft VBScript" document.write("Line 1 : " & LCase(var) & "<br />") var = "MS VBSCRIPT" document.write("Line 2 : " & LCase(var) & "<br />") var = "microsoft" document.write("Line 3 : " & LCase(var) & "<br />") </script> </body> </html>
将其另存为.html并在Internet Explorer中执行时,上述脚本将产生以下结果:
Line 1 : microsoft vbscript Line 2 : ms vbscript Line 3 : microsoft
作者:terry,如若转载,请注明出处:https://www.web176.com/vbscript/1214.html