当前位置:网站首页>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));
}
}
}
边栏推荐
猜你喜欢

Unity SKFramework框架(二十二)、Runtime Console 运行时调试工具

Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制

L'information et l'entropie, tout ce que vous voulez savoir est ici.

Kotlin introductory notes (VII) data class and singleton class

Information and entropy, all you want to know is here

mysql安装配置以及创建数据库和表

初识结构体

Priority queue (heap)

Go 语言使用 MySQL 的常见故障分析和应对方法

Applet customization component
随机推荐
OpenGL - Model Loading
MySQL does not take effect in sorting string types
【js 根据对象数组中的属性进行排序】
阿里十年测试带你走进APP测试的世界
SQL learning group by multi table grouping scenario
云计算技术热点
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
Huber Loss
Editor use of VI and VIM
22-07-04 Xi'an Shanghao housing project experience summary (01)
Unity SKFramework框架(二十二)、Runtime Console 运行时调试工具
干货整理!ERP在制造业的发展趋势如何,看这一篇就够了
Rebuild my 3D world [open source] [serialization-2]
High performance spark_ Transformation performance
2310. The number of bits is the sum of integers of K
一题多解,ASP.NET Core应用启动初始化的N种方案[上篇]
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
nodejs_ 01_ fs. readFile
Kotlin introductory notes (VI) interface and function visibility modifiers
信息与熵,你想知道的都在这里了