JS当前页面打开URL页面

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title>URL跳转</title>
</head>
<body>
<script type="text/javascript" src="jquery-1.10.1.min.js" ></script>
<script>
//隐藏转跳,浏览器不产生历史记录(replace)
//window.location.replace("http://onestopweb.iteye.com/");
//当然我们还不能忘记常用的a标签(href)
//window.location.href = "http://onestopweb.iteye.com/";
//JQ跳转
$(location).attr('href','http://onestopweb.iteye.com/');
</script>
</body>
</html>

  

原文地址:https://www.cnblogs.com/wfy680/p/14536881.html