You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.
Rax 的做法
应用事件
在 src/app.tsx 中
runApp
接受一个app
对象,用户可在其上配置小程序原生的onLaunch
/onShow
/onShareAppMessage
等事件:页面事件
通过
registerNativeEventListeners
、addNativeEventListener
、removeNativeEventListener
三个 API 方法支持,详见:https://rax.js.org/docs/guide/page-lifecycle-and-event-handler
Taro 的做法
应用事件
在 src/app.js 的入口入口组件中支持
页面事件
同上
ICE 怎么做?
应用事件
在 src/app.ts 的
defineAppConfig
中配置:页面事件
// TODO
// 1. 贴合 W3C 标准
// 2. 支持一套代码输出至 Web + 小程序端,对于 Web 不支持的小程序原生事件不执行,但不报错
The text was updated successfully, but these errors were encountered: