摘要: prompt()方法用于弹出框,并且附带一个文本输入框 alert("请猜测一个1-100之间的数") var a = Math.floor(Math.random() * 100); alert(a); while(1){ var c =(prompt("请输入数字")); if (c == a) 阅读全文
posted @ 2022-09-25 14:56 最帅爸爸 阅读(178) 评论(0) 推荐(0)