当前位置:网站首页>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));
}
}
}
边栏推荐
- Explain NN in pytorch in simple terms CrossEntropyLoss
- Alibaba cloud sends SMS verification code
- VS Code问题:长行的长度可通过 “editor.maxTokenizationLineLength“ 进行配置
- 基于STM32单片机的测温仪(带人脸检测)
- 初识结构体
- C # image difference comparison: image subtraction (pointer method, high speed)
- Node の MongoDB Driver
- OpenGL - Lighting
- 一篇文章带你走进cookie,session,Token的世界
- LeetCode 503. 下一个更大元素 II
猜你喜欢

Editor use of VI and VIM

Introduction Guide to stereo vision (7): stereo matching

LeetCode 31. Next spread

OpenGL - Lighting

【sourceTree配置SSH及使用】

22-07-04 西安 尚好房-项目经验总结(01)

Introduction Guide to stereo vision (6): level constraints and polar correction of fusiello method

Can't find the activitymainbinding class? The pit I stepped on when I just learned databinding
![一题多解,ASP.NET Core应用启动初始化的N种方案[上篇]](/img/c4/27ae0d259abc4e61286c1f4d90c06a.png)
一题多解,ASP.NET Core应用启动初始化的N种方案[上篇]

Nips2021 | new SOTA for node classification beyond graphcl, gnn+ comparative learning
随机推荐
Creation and reference of applet
Applet global style configuration window
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
【PyTorch Bug】RuntimeError: Boolean value of Tensor with more than one value is ambiguous
C语言-从键盘输入数组二维数组a,将a中3×5矩阵中第3列的元素左移到第0列,第3列以后的每列元素行依次左移,原来左边的各列依次绕到右边
Unity skframework framework (XXII), runtime console runtime debugging tool
使用el-upload封装得组件怎么清空已上传附件
Figure neural network + comparative learning, where to go next?
2310. 个位数字为 K 的整数之和
LeetCode 496. 下一个更大元素 I
LeetCode 31. 下一个排列
一篇文章带你走进cookie,session,Token的世界
Node collaboration and publishing
Driver's license physical examination hospital (114-2 hang up the corresponding hospital driver physical examination)
2310. The number of bits is the sum of integers of K
Uni app implements global variables
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
LeetCode 31. Next spread
A keepalived high availability accident made me learn it again
2311. 小于等于 K 的最长二进制子序列