jQuery Routes Url
JQuery Routes Plugin. http://routesjs.com/
sample url : ../support/overview No problem
$.r开发者_Python百科outes({
"/support/overview": function(){}
});
** In this way, the url does not work **
/support/overview/?id=1&cid=1
$.routes({
"/support/overview": function(){}
});
What am I doing wrong?
You're supposed to be submitting this url
/support/overview/?id=1&cid=1
like so:
/support/overview/1/1
and to write your route
"/support/overview": function(){}
like so:
"/support/overview/:id/:cid": function(){}
That should fix your problems.
精彩评论