如果不說 '愛' 或者 '我愛你' '我也愛你'將會一直回圈問
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
let ai = prompt('我愛你,你愛我嗎?')
while (ai !== '愛' && ai !=='我也愛你' && ai !=='我愛你') {
prompt('我愛你,你愛我嗎?')
}
alert('那我們結婚吧!')
</script>
</body>
</html>
趕快發給你的女神試試吧!!!
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/375933.html
標籤:其他
