当前位置:网站首页>短视频平台开发,点击链接、图片自动跳转到新的页面
短视频平台开发,点击链接、图片自动跳转到新的页面
2022-06-28 03:44:00 【云豹网络科技】
短视频平台开发,点击链接、图片自动跳转到新的页面
方法一
//跳转页面
JumpPage(product){
let Detail= this.$router.resolve({
//要跳转的页面的名称
name:"名称",
//传参
query:{
"key":value,"key2":value}
})
//以新窗口打开
window.open(Detail.href,'_blank')
}
方法二
//跳转页面
JumpPage(product){
//在链接后加值
let Detail=this.$router.resolve('地址'+需要传的值);
//如:let Detail=this.$router.resolve('/Challenge/Details/'+row.id);
//以新窗口打开
window.open(Detail.href,'_blank')
}
跳转后接受参数:
//接参
let key= this.$route.query.key;
let key2= this.$route.query.key2;
以上就是 短视频平台开发,点击链接、图片自动跳转到新的页面,更多内容欢迎关注之后的文章
边栏推荐
- 基于arm5718的Shell脚本参数传递的2种方法
- Go language -select statement
- 01 MongoDB的概述、应用场景、下载方式、连接方式和发展历史等
- sqlserver 数据库之事物使用入门 案例
- Pychart shares third-party modules among different projects
- Uncover the mystery of SSL and learn how to protect data with SSL
- 2022年6月对自己近况的一次总结
- PostgreSQL 实现批量更新、删除、插入
- 欧洲家具EN 597-1 跟EN 597-2两个阻燃标准一样吗?
- ERP升级的另一种选择,MES系统
猜你喜欢

Iso8191 test is mentioned in as 3744.1. Are the two tests the same?

Multi project design and development · introduction to class library project

Learning about DC-DC step-down chip of sy8120i (12V reduced to 3.3V)

Tiktok practice ~ pay attention to bloggers

《性能之巅第2版》阅读笔记(二)--CPU监测

领歌leangoo敏捷看板工具新增导出卡片文档和粘贴共享脑图节点功能

Several important physical concepts

光伏板怎么申请ASTM E108阻燃测试?

Meichuang data security management platform has obtained the evaluation certificate of "data security product capability verification plan" of the Institute

first. Net core MVC project
随机推荐
How to learn a programming language systematically| Dark horse programmer
上线MES系统后,企业发生了这些变化......
机器学习入门笔记
Door level modeling - learning notes
01 overview, application scenarios, Download methods, connection methods and development history of mongodb
《性能之巅第2版》阅读笔记(二)--性能观察工具
leetcode - 329. 矩阵中的最长递增路径
成长一夏 挑战赛来袭 | 学习、创作两大赛道,开启导师报名啦!
2021年终总结及2022年展望
04 summary of various query operations and aggregation operations of mongodb
领歌leangoo敏捷看板工具新增导出卡片文档和粘贴共享脑图节点功能
sqlserver 数据库之事物使用入门 案例
10:00面试,10:02就出来了 ,问的实在是太...
[small program practice series] e-commerce platform source code and function implementation
2022年6月对自己近况的一次总结
11_ Deliberate practice and elaboration
ERP升级的另一种选择,MES系统
From zero to one, I will teach you to build a "search by text and map" search service (I)
Visualization of loss using tensorboard
05 mongodb summary of various column operations