reverse()方法用于颠倒数组中元素的顺序注意:该方法会改变原来的数组,而不会创建新的数组。例子: var str = ['1','2','3'];document.write(a);输出:3,2,1