Created
April 9, 2015 12:48
-
-
Save think2011/8cccc762104fc39f1cf8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.getRouteParams = function () { | |
var params = [], | |
routes = (window.location.pathname).split('/'); | |
for(var i = 0; i < routes.length; i++) { | |
if(routes[i]) params.push(routes[i]); | |
} | |
return params; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment