(1)语法:slice(startIndex,endIndex)包含startIndex,不包含endIndex
(2)slece(startIndex)截取包含startIndex之后的元素
<script>//slice(startIndex,endIndex)包含startIndex,不包含endIndex//slece(startIndex)截取包含startIndex之后的元素var arr=[1,2,3,4,5];console.log(arr.slice(1,3));console.log(arr.slice(1));</script>

