jquery 跳转,刷新,返回,判断浏览器型号

第一步引入jquery

<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
 
跳转到其他页面:
第一种方法.$(location).attr('href','1.html')//在需要跳转的地方放入
 第二种方法.window.location.href='1.html'
返回上一页:
history.back();
 
刷新页面:
window.location.reload()
 
获取屏幕的宽度,高度:
$(window).height()
$(window).width()
 
判断浏览器型号
window.navigator.userAgent
原文地址:https://www.cnblogs.com/mcll/p/11840265.html