开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜