当前位置:网站首页>wx.miniProgram.navigateTo在web-view中跳回小程序并传参
wx.miniProgram.navigateTo在web-view中跳回小程序并传参
2022-07-31 04:57:00 【weixin_43923808】
html方法要回到小程序页面:
h5页面
不传参:
wx.miniProgram.navigateTo({
url: '/pages/scenic/scenic_detail/scenic_detail'
})
传参:
wx.miniProgram.navigateTo({
url: '/pages/scenic/scenic_detail/scenic_detail?id='+id+'&title='+title
})
注: 要引入相关的js
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>小程序原生页面接收传递的参数
onLoad: function (options) {
console.log(options);
this.title = options.title
var scenicId = options.id;
}边栏推荐
- MySQL transaction (transaction) (this is enough..)
- ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
- 剑指offer专项突击版第15天
- Industry landing presents new progress | 2022 OpenAtom Global Open Source Summit OpenAtom OpenHarmony sub-forum was successfully held
- .NET-9.乱七八糟的理论笔记(概念,思想)
- Explanation of
- mysql存储过程
- MySQL transaction isolation level, rounding
- ABC D - Distinct Trio (Number of k-tuples
- MySQL database installation (detailed)
猜你喜欢
随机推荐
【云原生】DevOps(五):集成Harbor
SQL injection of DVWA
Visual studio shortcuts that improve efficiency, summary (updated from time to time)
The MySQL database installed configuration nanny level tutorial for 8.0.29 (for example) have hands
Reference code series_1. Hello World in various languages
View source and switch mirrors in two ways: npm and nrm
Centos7 install mysql5.7
Doris学习笔记之监控
MySQL transaction (transaction) (this is enough..)
PCL calculates the point cloud coordinate maximum and its index
WPF WPF 】 【 the depth resolution of the template
MySQL optimization: from ten seconds to three hundred milliseconds
专访 | 阿里巴巴首席技术官程立:云+开源共同形成数字世界的可信基础
ENSP, VLAN division, static routing, comprehensive configuration of Layer 3 switches
Unity Fighter
SQL行列转换
【线性神经网络】softmax回归
[R language] [3] apply, tapply, lapply, sapply, mapply and par function related parameters
Industry-university-research application to build an open source talent ecosystem | 2022 Open Atom Global Open Source Summit Education Sub-Forum was successfully held
1. Get data - requests.get()









