# Array.push ## 功能 把一个或多个元素追加到数组尾部。 ## 语法 ```bt array.push(value1, value2, ...) ``` ## 参数 | 参数 | 类型 | 必填 | 默认值 | 说明 | | ------ | ------ | ------ | ------ | ------ | | valueN | Any | 否 | 无 | 要追加的元素。 | ## 返回值 | 类型 | 说明 | | ------ | ------ | | Array | 返回原数组对象。 | ## 示例 ```bt items = [1, 2] result = items.push(3) // 输出:[1,2,3] print result ``` ## 注意事项 - 该方法会修改原数组。