indexof 根据字符返回位置 返回字符的编码 返回4 slice(“”,【】); 可以取负数 如果是负数 从右往左取 substr (区别) 转载于:https://www.cnblogs.com/liuliang389897172/p/8698574.html