Array.reverse

Array.reverse

Array.reverse

功能

反转数组元素顺序。

语法

参数

无参数。

返回值

类型说明
Array返回原数组对象。

示例

注意事项

  • 该方法会修改原数组。