我需要帮助我的功能。我有我所有的变数。 需要帮助切换页面
var swith = document.getElementById("sub");
var one = document.getElementById("rule");
var two = document.getElementById("cool");
var three = document.getElementById("fool");
Function cool() {
\t if(swith,one) window.location.replace("app.html");
};
<html>
<head>
<title>question?</title>
<link href="app.css" rel="stylesheet" type="text/css"/>
</head>
<body id="QA"> \t
<select id="much">
<option id="rule">0-10,000</option>
<option id="cool">25,00-50,000</option>
<option id="fool">75,000-100,000</option>
<input type="submit" id="sub">
<script src="app.js"></script>
</select>
</body>
</html>
我想我错过了一些重要的东西。但谷歌表示“未捕获的SyntaxError:意外的标识符”。
JavaScript是大小写敏感的。 '函数'不'函数' – j08691
app.js中有什么? – santon