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>

  

posted @ 2021-03-15 12:26  清语堂  阅读(1865)  评论(0编辑  收藏  举报