首页 > 技术文章 > js slice 截取数组或字符串
sunday123 2019-12-30 17:52 原文
arrayObject.slice(start,end) // arrayObject.slice(开始位置 -1指最后一个元素,结束位置 负数从尾部开始算)