Vuejs学习笔记

常用操作数组的方法

pop push unshift shift splice reverse sort indexOf lastIndexof concat slice

forEach filter(过滤) map(映射) some every reduce (find includes es6)

router跳转

this.$router.push('/home'});    //可以点返回
this.$router.replace('/home'});  //不会有返回
原文地址:https://www.cnblogs.com/bqh10086/p/12444624.html