当前位置:网站首页>短视频平台开发,点击链接、图片自动跳转到新的页面
短视频平台开发,点击链接、图片自动跳转到新的页面
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;
以上就是 短视频平台开发,点击链接、图片自动跳转到新的页面,更多内容欢迎关注之后的文章
边栏推荐
- C语言十进制与BCD码的相互转换
- 抖音實戰~關注博主
- 【小程序实战系列】电商平台源码及功能实现
- 利用ELK 搭建日志分析系统(三)—— 安全认证
- 成长一夏 挑战赛来袭 | 学习、创作两大赛道,开启导师报名啦!
- Arrangement of basic electrical knowledge (II)
- Chapter 14 AC-DC power supply front stage circuit note I
- A summary of my recent situation in June 2022
- [small program practice series] e-commerce platform source code and function implementation
- 多项目开发入门,基础设计 类库项目使用
猜你喜欢
抖音实战~关注博主
Problems with cat and dog queues
10:00面试,10:02就出来了 ,问的实在是太...
错排兼排列组合公式
leetcode - 329. 矩阵中的最长递增路径
A summary of my recent situation in June 2022
Arrangement of basic electrical knowledge (II)
Web APIs DOM event foundation dark horse programmer
MSC 307(88) (2010 FTPC Code)第2部分烟气和毒性测试
测试/开发程序员真的是青春饭吗?世界是公平的,咱们都凭实力说话......
随机推荐
English grammar_ Adjective / adverb Level 3 - Comparative_ Useful Expressions
Tiktok actual battle ~ take off the blogger
How to learn a programming language systematically| Dark horse programmer
Meichuang data security management platform has obtained the evaluation certificate of "data security product capability verification plan" of the Institute
11_ Deliberate practice and elaboration
Chapter 1 Introduction to bash
How to apply for ASTM E108 flame retardant test for photovoltaic panels?
In the era of video explosion, who is supporting the high-speed operation of video ecological network?
《性能之巅第2版》阅读笔记(二)--性能观察工具
僅用遞歸函數和棧操作逆序一個棧
@Transactional失效的几种场景
Backtracking maze problem
Leetcode: monotonic stack structure (Advanced)
From zero to one, I will teach you to build a "search by text and map" search service (I)
等保2.0密码要求是什么?法律依据有哪些?
27年,微软IE结束了!
MSC 307(88) (2010 FTPC Code) Part 5低播焰测试
Genicam gentl standard ver1.5 (2)
美创入选“2022 CCIA中国网络安全竞争力50强”榜单
Several important physical concepts