2 Star 4 Fork 0

taadis / layrouter

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

layrouter

Layui Router

在线示例

使用

首先注册路由

// 注册一个或多个路由
layrouter.register('home', function(){
    // 做你爱做的事...
    // 通常是加载页面/改变局部DOM
});

// 初始化
// 监听 hash 事件
layrouter.init();

参考

About

Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
JavaScript
1
https://gitee.com/taadis/layrouter.git
git@gitee.com:taadis/layrouter.git
taadis
layrouter
layrouter
master

Search