JS无刷新修改URL类似博客园翻页效果

<script type="text/javascript">
	function changeURL(){
		var url = document.getElementById('url').value;
		window.history.pushState({},0,'http://'+window.location.host+'/'+url);		
	}

</script>	

原文地址:https://www.cnblogs.com/adtuu/p/5884591.html