📌  相关文章
📜  javascript 如何获取数组中第一个元素之后的每个元素 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:57.947000             🧑  作者: Mango

代码示例1
var arguments = ['One', 'Two', 'Three'];
var middle = arguments.slice(1, -1); // will take away the 1st from the start and the 1st from the end
console.log(middle); // once logged it will only show 'Two'