<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script>
fuction link1(){
alert("hello");
location.href="http://www.sina.com.cn";
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
<title>Untitled Document</title>
</head>
<select onChange="link1();">
<option value="1">1</option>
<option value="2">2</option>
</select>
<body>
</body>
</html>为什么我的location.href="http://www.sina.com.cn";执行不了.
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script>
fuction link1(){
alert("hello");
location.href="http://www.sina.com.cn";
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
<title>Untitled Document</title>
</head>
<select onChange="link1();">
<option value="1">1</option>
<option value="2">2</option>
</select>
<body>
</body>
</html>为什么我的location.href="http://www.sina.com.cn";执行不了.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货