示例演示 slice() 方法。

slice(1,3) 顯示從 1 開始到 3 結束的項:

員工陣列:

© . All rights reserved.