js中字符串方法

字符串方法:

  1.  charAt(索引值)//通过索引值获取字符串中对应的值

      例如:

        var str='sdf123';

        alert(str.charAt(0));//结果弹出第一个索引对应的值:s

原文地址:https://www.cnblogs.com/taidou/p/5959779.html