根据 提示,已经很清楚区别了

js 使用 substr 和substring 的区别记录

 

 js 使用 substr 和substring 的区别记录

 

 区别都是第二个参数 ,substr 是长度 ,而substring 仍是索引数

相关文章: