const arr=[1,2]; //后面一定要加分号,因为不加解释器会认为在读数组 [arr[1], arr[0]] = [arr[0], arr[1]]; // [2,1]
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8