1 Unstar Star 3 Fork 0

taadis / layrouterJavaScriptMIT

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();

参考

JavaScript
1
https://gitee.com/taadis/layrouter.git
git@gitee.com:taadis/layrouter.git
taadis
layrouter
layrouter
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542