Skip to content

tanabe/jQuery-Router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

URL routing jQuery plugin


usage

$.route(
  {
    //always match
    //http://example.com/foo/bar/baz.html
    path: /./,
    func: function() {
      console.log("always match!");
    }
  },

  {
    //url contains /sample/index.html
    //http://example.com/foo/bar/sample/index.html
    path: /\/sample\/index\.html/,
    func: function() {
      console.log("sample page!");
    }
  }
);

About

URL routing plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published