开发者

jQuery Routes Url

开发者 https://www.devze.com 2023-04-10 08:52 出处:网络
JQuery Routes Plugin. http://routesjs.com/ sample url : ../support/overview No problem $.r开发者_Python百科outes({

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号