jquery mobile url路由原理

 

<html>

<head>

<title>88888</title>

 

</head>

<body>

<script>

window.onhashchange = function()

{

alert(window.location.hash);

}

</script>

<a href="#home" >home</a>

<a href="#free" >free</a>

</body>

</html>

 

你可能感兴趣的:(JQuery Mobile)