跨端 API
跨端框架提供给项目统一的运行环境,实现多端能力的一致性,包含路由,生命周期。
使用方式:
import { router } from 'ray';
API 概览
import { usePageEvent, withPageLifecycle, router, location } from 'ray';
usePageEvent
页面生命周期 hook,可用于监听页面生命周期。
签名:usePageEvent(event: string, callback: Function);
event:
onShow页面可见时onHide页面隐藏时onPageScroll页面滚动时onPullDownRefresh下拉刷新onReachBottom页面触底onResize&nb

最低0.47元/天 解锁文章
1039

被折叠的 条评论
为什么被折叠?



