array.slice(start, [end]);-->截取从start之后不包括end的元素;
array.concat([item1[, item2[, . . . [,itemN]]]]); -->合并数组;
两者都是返回数组的拷贝数组,注意是一个新的数组。

substring(start,stop)方法:
用于提取字符串中介于两个制定下标之间的字符. 包括start出的字符,但是不包括stop处的字符。
substr()
用于返回一个从指定位置开始的指定长度的子字符串。substr(start,length).

相关文章:

  • 2021-12-17
  • 2021-12-30
  • 2021-10-04
  • 2022-12-23
  • 2022-01-26
  • 2021-11-20
猜你喜欢
  • 2021-11-02
  • 2021-05-09
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案