數(shù)組倒敘代碼
<div class="test5-space">
{{arr1}}
{{arr2}}
</div>
export default {
data() {
return {
num:1,
arr1:[1,2,3,4,5],
};
},
computed:{
arr2:function(){
return this.arr1.reverse();
}
},
methods: {},
mounted() {}
};
????