Wuff, Wuff!!
2/18/2009
charAt
要拿 array[index] 的值, 在 ie 下要用 charAt(index).
var str = 'hello world';
alert(str[0]); // IE fail, FF ok
alert(str.charAt(0)); // IE ok, FF ok
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言