判断在Android手机内, 页面重新刷新一次

<script type="text/javascript">
var UA = navigator.userAgent.toLowerCase();
//android not in wx
if(UA.indexOf('linux')>-1 && UA.indexOf('android')>-1){
	url = window.location.href;
	if(window.location.hash == "") {
		url += "#reloaded";
		window.self.location.replace(url);
		window.location.reload(false); 
	}
}
</script>

  

posted @ 2015-09-02 09:48  sunnyJun  阅读(375)  评论(0编辑  收藏  举报