1.0.3 • Published 6 years ago

fe-router v1.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

fe-router

npm.io Analytics

This is a mini frontend router.

install

npm i fe-router -D

use

const FERouter = require('fe-router')

const routeMap = {
    '/': function () {
        xxx
    },
    '/1': function () {
        xxx
    }
}

const router = new FERouter({
    history: false, // true: history model,  false: hash model, default model: hash model
    routeMap
})

router.push('/')
router.push('/1')
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago