Skip to content

Instantly share code, notes, and snippets.

@shenqihui
Created July 6, 2014 10:24
Show Gist options
  • Save shenqihui/fa9f3c920a42df3c03e9 to your computer and use it in GitHub Desktop.
Save shenqihui/fa9f3c920a42df3c03e9 to your computer and use it in GitHub Desktop.
$(window).on('hashchange', function(e) {
if (location.hash === '#login') {
location.hash = "#loginTrue";
} else if (location.hash === '#reg') {
location.hash = "#regTrue";
} else if (location.hash === '#find') {
location.hash = "#findTrue";
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment