关于Javascript那些事

63 阅读1分钟
<script>
        var height = prompt("请输入身高:")
        var weight = prompt("请输入体重:")
        if((height - 108)*2 +10 <= weight && (height -             108) * 2 - 10 >= weight){
          alert('合适')
        }else{
            alert('不合适')
            }
   </script>