แปลงข้อความเป็นตัวเล็ก toLowerCase ตัวใหญ่ toUpperCase ด้วย javascript
เขียนเมื่อ 13 ปีก่อน โดย Ninenik Narkdeetouppercase javascript tolowercase string
คำสั่ง การ กำหนด รูปแบบ ตัวอย่าง เทคนิค ลูกเล่น การประยุกต์ การใช้งาน เกี่ยวกับ touppercase javascript tolowercase string
ไปที่
Copy
Javascript Code
<script type="text/javascript"> function al(){ var hello_text="Welcome to Ninenik.com"; hello_text=hello_text.toLowerCase(); // ฟังก์ชันสำหรับแสดงตัวเล็ก alert(hello_text); } function al2(){ var hello_text="Welcome to Ninenik.com"; hello_text=hello_text.toUpperCase(); // ฟังก์ชันสำหรับแสดงตัวใหญ่ alert(hello_text); } </script>
HTML code การใช้งาน
<button onclick="al()">แสดงตัวเล็ก</button> <button onclick="al2()">แสดงตัวใหญ่</button>
ตัวอย่าง
กด Like หรือ Share เป็นกำลังใจ ให้มีบทความใหม่ๆ เรื่อยๆ น่ะครับ

URL สำหรับอ้างอิง
Top
Copy
ขอบคุณทุกการสนับสนุน
![]()