Skip to content

ImHype/Router-By-HashChange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ajax update by hash change

通过监听URL中HASH值的改变,来更新页面中局部的内容


How To Use It .

  • Add The Script.
  • Add The ViewArea.
  • Setting In Script.

Note

<script src="function.js"></script>
<div class="body"></div>
<script>
	var bd = spa.getByClass(document,"body")[0];
	spa.mvc({body:bd});
</script>

License

© Junyu Xu

About

通过监听hash值变化,改变页面的局部内容

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages