练习2

作者: 张露锋 | 来源:发表于2018-12-02 19:04 被阅读0次
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>if练习2</title>
        <script type="text/javascript">

            var height = prompt("请输入你的身高(CM):");
            var money = prompt("请输入你的财富(万):");
            var face = prompt("请输入你的颜值(PX):");
            
            if(height > 180 && money > 1000 && face > 500){
                alert("我一定要嫁给他");
            }else if(height > 180 || money > 1000 || face > 500){
                
                alert("嫁吧,比上不足,比下有余。");
            }else{
                alert("不嫁。");
            }
        </script>
    </head>
    <body>
    
    </body>
</html>

相关文章

网友评论

      本文标题:练习2

      本文链接:https://www.haomeiwen.com/subject/wwcscqtx.html