September 06, 2007

WEEK8

String

.legth() - หาขนาดหรือความยาวของstring

.charAt() - สมาชิกของstring

.indexOf() - หาตำแหน่งของสมาชิกของstring

.lastIndexOf() - หาตำแหน่งของสมาชิกของstringตำแหน่งสุดท้าย

+ - เอาstringมาต่อกัน

+= - เอาstringมาต่อกันแล้วเก็บไว้ที่ตัวหน้า

.concat() เอาstringมารวมกัน

.substring() - หาstringย่อยในstringหลัก

.replace() - เปลี่ยนแปลงstring

.replaceAll() - เปลี่ยนแปลงstring

.trim() - ทำให้เล็กลง

.toLowerCase() - เปลี่ยนค่าในstringให้เป็นตัวเล็ก

.toUpperCase() - เปลี่ยนค่าในstringให้เป็นตัวใหญ่

1 comment:

Anonymous said...

Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the DVD e CD, I hope you enjoy. The address is http://dvd-e-cd.blogspot.com. A hug.