substr(start,length) substring(start,end)

来源:互联网 发布:js 集合 编辑:程序博客网 时间:2024/06/06 01:14
  substr是从起始点截取某个长度的字符串
而substring是截取2个位置之间的字符串