0.0.7 • Published 7 years ago

pomace-router v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

pomace-router

动态属性

router.times

当前历史进入次数。

router.current

当前路由路径。

router.currentParams

当前路由路径的参数。

router.currentRouteParams

当前路径参数。

router.recordRoutes

历史路径及参数。

方法

router.init( callback )

参数说明

callback       回调定义,实参use
use.indexPath  定义根路径
use.path       定义其他路径
use.entry      定义进入事件
use.leave      定义离开事件

router.go( routeName, params )

参数说明

routeName 路由名称
params 路由参数

router.out( routeName, params )

参数说明

routeName 路由名称
params 路由参数

router.back( times )

参数说明

times 历史次数
0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago