首页 > 其他 > 详细

vue-router使用以及vue下的nextTick钩子函数

时间:2017-08-22 17:57:19      阅读:438      评论:0      收藏:0      [点我收藏+]

先把router文件引入过来

import router from ‘../../router‘
router.push({name: ‘merchantStationDetail‘, params: {"authorCheckList":authorCheckList,"stationName":stationName,"groupId":groupId}});
填入router配置的路径名称,和相关参数
获取参数
this.authorCheckList=this.$route.params.authorCheckList;

nextTick
应用场景
当一些数据更新后,需要回调一些校验函数
这个时候需要nextTick钩子函数,获取到数据更新后的状态

vue-router使用以及vue下的nextTick钩子函数

原文:http://www.cnblogs.com/windseek/p/7412778.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!