开发者

JQuery Mobile checking for hash on load

http://site.com/#pagename

I would usuall开发者_Go百科y use the jquery.address plugin to get any hash value (pagename) from the incoming url and then load the appropriate page. I'm new to jquery mobile. Could someone tell me whether this functionality is built into the framework or whether I am best using a plugin. Any help much appreciated thanks


Found it

$.mobile.path.parseUrl


window.location.hash also returns the hash of the current URL. Here's some info about the window.location object: http://www.w3schools.com/jsref/obj_location.asp

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜