var string="asdf" alert(string[0]); IE 6 7 下为undefined 转载于:https://www.cnblogs.com/kxdhm/archive/2012/03/15/2397741.html