Cpage.js
Cpage.js copied to clipboard
可以支持路由操作吗
是否有路由相关的api可以用呢
Cpage.router([
{
path: '/article',
component: Article,
params: {
id: 123
},
cache: true,
delay: 200
},
{
path: '/article/:id',
component: ArticleDetail
},
{
path: '/about',
component: About,
cache: true,
},
]);