上一页 1 ··· 198 199 200 201 202 203 204 205 206 ··· 265 下一页
  2025年1月1日
摘要: wx.restartMiniProgram(Object object) 基础库 3.0.1 开始支持,低版本需做兼容处理。 以 Promise 风格 调用:不支持 小程序插件:不支持 微信 鸿蒙 OS 版:支持 功能描述 重启当前小程序 参数 Object object 属性 类型 默认值 必填 阅读全文
posted @ 2025-01-01 10:08 AtlasLapetos 阅读(132) 评论(0) 推荐(0)
摘要: router.removeRouteBuilder(string routeType) 小程序插件:不支持 相关文档: 自定义路由 功能描述 移除自定义路由配置 参数 string routeType 路由类型 示例代码 wx.router.removeRouteBuilder('slide') 阅读全文
posted @ 2025-01-01 10:08 AtlasLapetos 阅读(4) 评论(0) 推荐(0)
摘要: router.getRouteContext(Object this) 小程序插件:不支持 相关文档: 自定义路由 功能描述 获取页面对应的自定义路由上下文对象 参数 Object this 页面/自定义组件实例 示例代码 wx.router.getRouteContext(this)) 阅读全文
posted @ 2025-01-01 10:08 AtlasLapetos 阅读(12) 评论(0) 推荐(0)
摘要: router.addRouteBuilder(string routeType, function routeBuilder) 小程序插件:不支持 相关文档: 自定义路由 功能描述 添加自定义路由配置 参数 string routeType 路由类型 function routeBuilder 路由 阅读全文
posted @ 2025-01-01 10:08 AtlasLapetos 阅读(30) 评论(0) 推荐(0)
摘要: wx.router 基础库 2.29.2 开始支持,低版本需做兼容处理。 相关文档: 自定义路由 router 对象,可以通过 wx.router 获取。 方法 router.addRouteBuilder(string routeType, CustomRouteBuilder routeBuil 阅读全文
posted @ 2025-01-01 10:08 AtlasLapetos 阅读(27) 评论(0) 推荐(0)
摘要: EventChannel.once(string eventName, function fn) 基础库 2.7.3 开始支持,低版本需做兼容处理。 小程序插件:支持 功能描述 监听一个事件一次,触发后失效 参数 string eventName 事件名称 function fn 事件监听函数 参数 阅读全文
posted @ 2025-01-01 10:08 AtlasLapetos 阅读(4) 评论(0) 推荐(0)
摘要: EventChannel.on(string eventName, function fn) 基础库 2.7.3 开始支持,低版本需做兼容处理。 小程序插件:支持 功能描述 持续监听一个事件 参数 string eventName 事件名称 function fn 事件监听函数 参数 any arg 阅读全文
posted @ 2025-01-01 10:08 AtlasLapetos 阅读(12) 评论(0) 推荐(0)
摘要: EventChannel.off(string eventName, function fn) 基础库 2.7.3 开始支持,低版本需做兼容处理。 小程序插件:支持 功能描述 取消监听一个事件。给出第二个参数时,只取消给出的监听函数,否则取消所有监听函数 参数 string eventName 事件 阅读全文
posted @ 2025-01-01 10:07 AtlasLapetos 阅读(5) 评论(0) 推荐(0)
摘要: EventChannel.emit(string eventName, any args) 基础库 2.7.3 开始支持,低版本需做兼容处理。 小程序插件:支持 功能描述 触发一个事件 参数 string eventName 事件名称 any args 事件参数 阅读全文
posted @ 2025-01-01 10:07 AtlasLapetos 阅读(30) 评论(0) 推荐(0)
摘要: EventChannel 基础库 2.7.3 开始支持,低版本需做兼容处理。 页面间事件通信通道 方法 EventChannel.emit(string eventName, any args) 触发一个事件 EventChannel.on(string eventName, EventCallba 阅读全文
posted @ 2025-01-01 10:07 AtlasLapetos 阅读(8) 评论(0) 推荐(0)
上一页 1 ··· 198 199 200 201 202 203 204 205 206 ··· 265 下一页