<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<script type="text/javascript">
var x = prompt("请输入性别:");
var t = Number(prompt("请输入体重:"));
if(x == "boy"){
if(t <= 60){
alert("献血量:250ml");
}else{
alert("献血量为300ml");
}
}else{
if(t <= 50){
alert("献血量:200ml");
}else{
alert("献血量:250ml");
}
}
</script>
<body>
</body>
</html>