如何用Vue实现页面跳转并携带参数?
- 内容介绍
- 文章标签
- 相关推荐
本文共计285个文字,预计阅读时间需要2分钟。
1. 需求:点击商场跳转到商业体列表 解决方案:页面中添加跳转函数和样式 页面代码:`商场`
1.需求:
点击商场跳转到商业体列表
解决方案:
元页面:
a标签中添加跳转函数
<a class="orderBtn1 sIRicon2" href="javascript:void(0);" rel="external nofollow" @click="toMallInfo('M000989')"><i class="sIRicon"></i>商场</a>
toMallInfo: function(mallCode){ this.$router.push({ path: '/propertyInfo/mall/mallList', // name: 'mallList', query: { mallCode: 'M000989' } }) },
将将跳转的url添加到 $router中。
本文共计285个文字,预计阅读时间需要2分钟。
1. 需求:点击商场跳转到商业体列表 解决方案:页面中添加跳转函数和样式 页面代码:`商场`
1.需求:
点击商场跳转到商业体列表
解决方案:
元页面:
a标签中添加跳转函数
<a class="orderBtn1 sIRicon2" href="javascript:void(0);" rel="external nofollow" @click="toMallInfo('M000989')"><i class="sIRicon"></i>商场</a>
toMallInfo: function(mallCode){ this.$router.push({ path: '/propertyInfo/mall/mallList', // name: 'mallList', query: { mallCode: 'M000989' } }) },
将将跳转的url添加到 $router中。

