如何直接跳转网页不通过button的方式跳转
<head>
<script type="text/javascript">
function woopen(){
window.open('http://localhost/Thehome/index-2.php','_self');
}
</script>
</head>
<body>
if(){
woopen();
}
<head>
<script type="text/javascript">
function woopen(){
window.open('http://localhost/Thehome/index-2.php','_self');
}
</script>
</head>
<body>
if(){
woopen();
}
2016-07-29
举报