📜  循环数组 js - ActionScript 代码示例

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

代码示例6
var ar = [1, 2, 3, 4, 5, 6];
    
    ar.length = 4; // set length to remove elements
    console.log( ar ); // [1, 2, 3, 4]