到底是哪出错了
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>两数之间的运算</title>
<script type="text/javascript">
function toResult()
{
var n1=parseInt(document.getElementById("txtN1").value);
var n2=parseInt(document.getElementById("txtN2").value);
var c=document.getElementById("caul").value;
var r;
switch(c)
{
case "+": r= n1+n2; break;
case "-": r= n1-n2; break;
case "*": r= n1*n2; break;
case "/": r= n1/n2; break;
case "%": r= n1% n2; break
}
document.getElementById("rs").innerHTML=r.toString();
}
}
</script>
</head>
<body>
<input type="text" name="txtN1" id="txtN1"/>
<select name="caul" id="caul" >
<option>+</option>
<option>-</option>
<option>*</option>
<option>/</option>
<option>%</option>
</select>
<input type="text" name="txtN2" id="txtN2"/>
<input type="button" name="btnR" value="=" onclick="toResult()"/ >
<span id="rs">?</span>
</body>
</html>