我有一个字符串,我需要得到它的第一个字符.
var x = 'somestring'; alert(x[0]); //in ie7 returns undefined
我该如何修复我的代码?
javascript
javascript ×1