while你爱不爱我

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>a
</head>
<body>
    <script>
        var data=prompt('你爱不爱我!请填写Yes');
        while(data!=='yes'){
            data=prompt('你爱不爱我!请填写yes')
        }
        alert('我也爱你')
    </script>
</body>
</html>
posted @ 2020-10-26 19:02  无敌臭弟弟  阅读(74)  评论(0编辑  收藏  举报