12.27---push方法演示

69 阅读1分钟
    var arr = [100, 200, 300];
    arr.push(500);  // 将小括号内的数据, 插入到 数组的 末尾

    console.log(arr)    // 100  200  300  500