
vue-router跳转前执行方法
[html]<router-link class="buy-now" to="/cart" >立即购买</router-link> [/html] 上面代码会通过定义好的路由跳...
[html]<router-link class="buy-now" to="/cart" >立即购买</router-link> [/html] 上面代码会通过定义好的路由跳...
先看下面这段JS代码: [js] $(function () { $(‘.icon-top’).on(‘click’, function (event) { //取消事件冒泡 event.st...