父页面 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) 236 0
reactive和ref都是用来定义响应式数据的,而reactive更推荐用来定义对象,ref更推荐定义基础数据类型,... 【VUE3】ref和reactive的区别 1年前 (2022-05-20) 293 0
onLoad: function (options) { wx.setNavigationBarTitle({ title:"设置页面标题" }... 【微信小程序】微信小程序动态设置页面标题 1年前 (2022-05-20) 262 0
下面的列表,是 vue 2.x 的生命周期函数与新版 Composition API 之间的映射关系: beforeCreate -> ... 【VUE3】生命周期函数 1年前 (2022-04-28) 319 0
setup(props, context) { context.attrs context.slots context.parent context.root ... 【VUE3】使用emit等属性 1年前 (2022-04-28) 286 0
document.location.host //表示当前域名 + 端口号 document.location.hostname //表示域名 doc... 【JS】判断当前协议是http还是https 1年前 (2022-04-28) 298 0
父组件向子组件传值 父组件给子组件绑定值 <child :msg="text"/> 子组件获取props <script>... 【VUE3】父子组件之间的传值 1年前 (2022-04-28) 378 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