当前位置:网站首页>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));
}
}
}
边栏推荐
- [team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
- Applet (subcontracting)
- C # image difference comparison: image subtraction (pointer method, high speed)
- 深入浅出PyTorch中的nn.CrossEntropyLoss
- An article takes you into the world of cookies, sessions, and tokens
- Applet (use of NPM package)
- SQL learning alter add new field
- c语言指针深入理解
- Explain NN in pytorch in simple terms CrossEntropyLoss
- Nips2021 | new SOTA for node classification beyond graphcl, gnn+ comparative learning
猜你喜欢
Editor use of VI and VIM
NIPS2021 | 超越GraphCL,GNN+对比学习的节点分类新SOTA
Svg optimization by svgo
Wxml template syntax
一次 Keepalived 高可用的事故,让我重学了一遍它
Android privacy sandbox developer preview 3: privacy, security and personalized experience
What is a firewall? Explanation of basic knowledge of firewall
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
Introduction Guide to stereo vision (6): level constraints and polar correction of fusiello method
The research trend of map based comparative learning (gnn+cl) in the top paper
随机推荐
2311. Longest binary subsequence less than or equal to K
Nips2021 | new SOTA for node classification beyond graphcl, gnn+ comparative learning
Talking about the difference between unittest and pytest
Kotlin introductory notes (VIII) collection and traversal
The research trend of map based comparative learning (gnn+cl) in the top paper
Thermometer based on STM32 single chip microcomputer (with face detection)
【el-table如何禁用】
22-07-04 西安 尚好房-项目经验总结(01)
LeetCode 556. 下一个更大元素 III
STM32简易多级菜单(数组查表法)
OpenGL - Coordinate Systems
22-07-04 Xi'an Shanghao housing project experience summary (01)
Greendao reported an error in qigsaw, could not init daoconfig
一篇文章带你走进cookie,session,Token的世界
Blogger article navigation (classified, real-time update, permanent top)
C form click event did not respond
【js 根据对象数组中的属性进行排序】
Progressive JPEG pictures and related
OpenGL - Model Loading
Analysis of eventbus source code