码迷,mamicode.com
首页 > 其他好文 > 详细

7.21练习3

时间:2017-07-22 09:46:33      阅读:124      评论:0      收藏:0      [点我收藏+]

标签:charset   买房子   doc   nbsp   rip   head   rom   ==   alert   

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
    </body>
</html>
<script>
    a=prompt("你有房子吗?","")
    x="有"
    if(x==a){
        alert("结婚吧")
    }
    else{
        b=prompt("你有钱吗?","")
        if(x==b){
            alert("先买房子在结婚")
        }
        else{
            c=prompt("你有能力么?“,”")
            if(x==c){
                alert("先赚钱再买房子再结婚")
            }
            else{
                alert("拜拜~~")
            }
        }
    }
    
</script>

7.21练习3

标签:charset   买房子   doc   nbsp   rip   head   rom   ==   alert   

原文地址:http://www.cnblogs.com/sglq/p/7220276.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!