if(score>=90&&score<=100){document.write("棒极了!")}
有这样的写法吗?
&&可以起到作用吗?
有这样的写法吗?
&&可以起到作用吗?
2016-08-20
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>prompt</title>
<script type="text/javascript">
function rec(){
var score;
score = prompt("请输数字") ;
if(score>=90&&score<=100)
{
document.write("输入正确");
}
else
{
document.write("输入有误");
}
</script>
</head>
<body>
<input name="button" type="button" onClick="rec()" value="点击我,对成绩做评价!" />
</body>
</html>举报