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
精彩评论