ezdo-router

1.0.1 • Public • Published

ezdo-router

这是一个针对 ezdo js 框架的路由系统,运行环境为 ESM,在其它 js 框架内暂无任何效果

using

import EzRouter from 'ezdo-router'
 
let router = new EzRouter({
    view: routerContainer,
    routes: [
        { path: '/', class: RouteClass1 },
        { path: '/about', class: RouteClass2 }
    ]
})
 
router.path = '/'

routerContainer 应该是一个已实例过后的节点对象

RouteClass* 应该是一个未实例化节点对象

more

ezdo.js ezdo-tree

other

本人正在找工作,有需要的或者可以帮内推的@我,感激。微信/手机:15011021101

Readme

Keywords

Package Sidebar

Install

npm i ezdo-router

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2.48 kB

Total Files

3

Last publish

Collaborators

  • cn.coder