当前位置:网站首页>短视频平台开发,点击链接、图片自动跳转到新的页面
短视频平台开发,点击链接、图片自动跳转到新的页面
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;
以上就是 短视频平台开发,点击链接、图片自动跳转到新的页面,更多内容欢迎关注之后的文章
边栏推荐
- Building log analysis system with elk (III) -- Security Authentication
- 等保三级密码复杂度是多少?多久更换一次?
- 第一个.net core MVC项目
- 揭开SSL的神秘面纱,了解如何用SSL保护数据
- How to learn a programming language systematically| Dark horse programmer
- 窗帘做EN 1101易燃性测试过程是怎么样的?
- 内卷、躺平与中年危机的相关思考
- 03 MongoDB文档的各种增加、更新、删除操作总结
- English grammar_ Adjective / adverb Level 3 - Comparative
- 领歌leangoo敏捷看板工具新增导出卡片文档和粘贴共享脑图节点功能
猜你喜欢

10:00面试,10:02就出来了 ,问的实在是太...

La norme européenne en 597 - 1 pour les meubles est - elle la même que les deux normes en 597 - 2 pour les ignifuges?

Introduction to multi project development, basic design class library project use

leetcode:714. 买卖股票的最佳时机含手续费【dp双状态】

歐洲家具EN 597-1 跟EN 597-2兩個阻燃標准一樣嗎?

leetcode - 329. Longest increasing path in matrix

02 MongoDB数据类型、重要概念以及shell常用指令

Secouer le son et se battre ~ prêter attention au blogueur

Problems with cat and dog queues

使用tensorboard进行loss可视化
随机推荐
Moonbeam集成Coin98,给予用户在多链道路上的更多选择
多项目设计开发·类库项目引入入门
阿里P8倾情推荐,Fiddler抓包工具实战篇(一)
03 MongoDB文档的各种增加、更新、删除操作总结
English grammar_ Adjective / adverb Level 3 - Comparative
MSC 307(88) (2010 FTPC Code) Part 9床上用品试验
【MySQL】多表连接查询
Adder - Notes
僅用遞歸函數和棧操作逆序一個棧
关于 SY8120I 的DC-DC的降压芯片的学习(12V降至3.3V)
Visualization of loss using tensorboard
仅用递归函数和栈操作逆序一个栈
Understanding and learning of parental delegation mechanism
The company leader said that if the personal code exceeds 10 bugs, he will be dismissed. What is the experience?
leetcode:714. The best time to buy and sell stocks includes handling fee [DP dual status]
Staggered and permutation combination formula
Unity C # e-learning (11) -- custom protocol generation tool
Reading notes of top performance version 2 (II) -- CPU monitoring
Pychart shares third-party modules among different projects
How to learn a programming language systematically| Dark horse programmer