---
title: "jquery mobile url路由原理"
author: "leiwuluan"
date: "2013-03-04T14:24:27Z"
tags: []
categories: ["Web前端"]
slug: "jquery-mobile-url"
draft: false
lastmod: "2013-03-04T14:24:27Z"
id: 1821101
url: "https://leiwuluan.iteye.com/blog/1821101"
---

&lt;html&gt;

&lt;head&gt;

&lt;title&gt;88888&lt;/title&gt;

 

&lt;/head&gt;

&lt;body&gt;

&lt;script&gt;

window.onhashchange = function()

{

alert(window.location.hash);

}

&lt;/script&gt;

&lt;a href="#home" &gt;home&lt;/a&gt;

&lt;a href="#free" &gt;free&lt;/a&gt;

&lt;/body&gt;

&lt;/html&gt;