当前位置:网站首页>uni-app---uni. Navigateto jump parameter use
uni-app---uni. Navigateto jump parameter use
2022-07-05 09:29:00 【Left hand holding * * right hand】
uni-app Have their own grammar . When we use it, we pass parameters , Pass string or object ,
String pass parameters : You can splice addresses
goreportdetails(id) {
uni.navigateTo({
url: '/pages/reportdetails/reportdetails?id=' + id + '&name=edit'
})
},
The object passes parameters : Sometimes parameters are lost , So with encodeURIComponent
uni.navigateTo({
url: '/pages/build/build?list=' + encodeURIComponent(JSON.stringify(this.itemList)) + '&name=' + this.name +'&totalScore=' + this.totalScore + '&content=' + this.content+ '&uid=' + this.uid,
})
Then the receiving parameters are :
onLoad(option) {
if (option) {
this.name = option.name
this.uid = option.uid
if (option.list) {
this.list = JSON.parse(decodeURIComponent(option.list));
}
}
}
边栏推荐
- 【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
- Unity SKFramework框架(二十三)、MiniMap 小地图工具
- Kotlin introductory notes (V) classes and objects, inheritance, constructors
- OpenGL - Lighting
- Unity skframework framework (24), avatar controller third person control
- Introduction Guide to stereo vision (5): dual camera calibration [no more collection, I charge ~]
- MySQL does not take effect in sorting string types
- Can't find the activitymainbinding class? The pit I stepped on when I just learned databinding
- Svgo v3.9.0+
- The research trend of map based comparative learning (gnn+cl) in the top paper
猜你喜欢

【阅读笔记】图对比学习 GNN+CL

nodejs_ fs. writeFile

Editor use of VI and VIM

一篇文章带你走进cookie,session,Token的世界

Confusion matrix

Understanding of smt32h7 series DMA and DMAMUX

Unity SKFramework框架(二十三)、MiniMap 小地图工具

An article takes you into the world of cookies, sessions, and tokens

Nips2021 | new SOTA for node classification beyond graphcl, gnn+ comparative learning

NIPS2021 | 超越GraphCL,GNN+对比学习的节点分类新SOTA
随机推荐
Introduction Guide to stereo vision (6): level constraints and polar correction of fusiello method
Hosting environment API
Huber Loss
Unity SKFramework框架(二十二)、Runtime Console 运行时调试工具
阿里云发送短信验证码
微信小程序获取住户地区信息
Using request headers to develop multi terminal applications
Can't find the activitymainbinding class? The pit I stepped on when I just learned databinding
Transfer learning and domain adaptation
【PyTorch Bug】RuntimeError: Boolean value of Tensor with more than one value is ambiguous
【两个对象合并成一个对象】
Rebuild my 3D world [open source] [serialization-3] [comparison between colmap and openmvg]
Explain NN in pytorch in simple terms CrossEntropyLoss
. Net service governance flow limiting middleware -fireflysoft RateLimit
Go 语言使用 MySQL 的常见故障分析和应对方法
Unity skframework framework (XXIII), minimap small map tool
Applet (subcontracting)
The research trend of map based comparative learning (gnn+cl) in the top paper
Android privacy sandbox developer preview 3: privacy, security and personalized experience
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details