点击 显示弹框 确定

var word = prompt("请输入一段文字","");
if(word){
//输出word的格式
alert("已获得:"+word);
}

posted @ 2020-07-30 17:09  王霸道  阅读(26)  评论(0)    收藏  举报