View Single Post
ישן 22-06-06, 11:39   # 2
Itay
חבר מתקדם
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 564

Itay לא מחובר  

אתה יכול להשתמש ב-charAt
קוד:
var b = 'I am a JavaScript hacker.'
document.write(b.charAt(5))
ציטוט:
gives 'a', because that's the character at the sixth position (remember, first character is 0!).
http://www.quirksmode.org/js/strings.html
  Reply With Quote