不能实现想要的功能,出不来
<script type="text/javascript">
//prompt消息对话框/提示
function study()
{
var score;
score=prompt(你及格了吗?)
if(score==100)
{document.write(满分!);}
else if(score>=80)
{document.write(优秀!);}
else if(score>=60)
{document.write(及格。);}
else{document.write(不及格,加油!);}
}
//单行注释
//我是单行注释,我也要隐藏起来!
</script>
</head>
<body>
<input type="button" value="分数" onClick="study()"/>
</body>
</html>