父页面 wx.navigateTo({ url: `${this.properties.toUrl}?detaiData=${JSON.stringify(e.currentTa... 【微信小程序】子页面传递数据给父页面,父页面通过时间传递数据给子页面 1年前 (2022-05-20) 228 0
// 获取页面栈 const pages = getCurrentPages(); // 获取所需页面 const prevPage = pages[pages.le... 【微信小程序】微信小程序navigateBack返回上一页并刷新 1年前 (2022-05-20) 247 0
组件 <checkList data="{{checkData}}" toUrl="{{toUrl}}" id="checkList" checkTypeData="{{checkTy... 【微信小程序】页面访问组件的任意数据和方法 1年前 (2022-05-20) 235 0
onLoad: function (options) { wx.setNavigationBarTitle({ title:"设置页面标题" }... 【微信小程序】微信小程序动态设置页面标题 1年前 (2022-05-20) 262 0
wxs 中写一个方法 <wxs module="tools"> var includes = function (array, searchElement) { ... 【微信小程序】在 wxml 文件中不能使用 Array.includes 方法问题 1年前 (2022-04-28) 294 0
例如使用wx.navigateTo跳转 wx.navigateTo({ url: `/pages/sharedPages/regionSelect/index/index?... 【微信小程序】跨页面传递数据 1年前 (2022-04-28) 334 0
使用data-自定义属性名,如: <!-- 绑定data-id 需要传递的参数 格式为data-XXX --> <view cl... 【微信小程序】点击事件传递自定义参数 1年前 (2022-04-28) 285 0
1、问题:切换tabbar光标位置不及时,需要点击两次能才可以 2、解决:在对应的页面添加设置光标位置,如... 【微信小程序】vant-app自定义tabbar激活样式不能及时地更新 3年前 (2020-09-25) 729 0
1、进入后台设置客服成员 2、微信小程序编写代码 <contact-button type="default-dark" size="20" s... 【微信小程序】接入客服功能 3年前 (2020-09-25) 713 0
1. 生命周期 App(全局) 位置:项目根目录app.js文件 App({ onLaunch (options) { // con... 【微信小程序】微信小程序生命周期、页面生命周期、组件生命周期 3年前 (2020-09-22) 714 0
wx.requestPayment( { 'timeStamp': '', 'nonceStr': '', 'package': '', 'signType': 'MD... 【微信小程序】微信小程序支付api 3年前 (2020-09-18) 711 0
// 允许从相机和相册扫码 wx.scanCode({ success (res) { console.log(res) } }) // 只... 【微信小程序】微信小程序扫码 3年前 (2020-09-18) 671 0