new Router()
Methods
-
<async> back()
-
返回一个页面
-
<async> forward()
-
向前一个页面
-
<async> go()
-
转跳 n 个页面,n 为正数向前,负数向后
-
<async> push(path, n)
-
转跳至指定路径或名字的页面
Parameters:
Name Type Default Description path
String 路径或名字 n
Number 0 当存在多个路径时,指定名字,可选择第几个路径