Latest web development tutorials

ฟังก์ชั่น VBScript LCase

VBScript อ้างอิง อ้างอิง VBScript สมบูรณ์

ฟังก์ชั่น LCase แปลงสตริงที่ระบุเป็นตัวพิมพ์เล็ก

เคล็ดลับ: ดูฟังก์ชั่น UCase

ไวยากรณ์

LCase(string)

参数 描述
string 必需。需要被转换为小写的字符串。

ตัวอย่าง

ตัวอย่างที่ 1

<script type="text/vbscript">

txt="THIS IS A BEAUTIFUL DAY!"
document.write(LCase(txt))

</script>

ตัวอย่างของการส่งออกดังกล่าวข้างต้น:

this is a beautiful day!

ลอง»

ตัวอย่างที่ 2

<script type="text/vbscript">

txt="This is a BEAUTIFUL day!"
document.write(LCase(txt))

</script>

ตัวอย่างของการส่งออกดังกล่าวข้างต้น:

this is a beautiful day!

ลอง»

VBScript อ้างอิง อ้างอิง VBScript สมบูรณ์