js 弹出需要用户输入文本的对话框

index.js

const res = window.prompt("What's your name?");
alert(`Your name is ${res}`);

posted on 2021-09-09 10:40  aisowe  阅读(687)  评论(0编辑  收藏  举报

导航