prompt

var name = prompt('请输入您的名字', 'Bill Gates');

原文地址:https://www.cnblogs.com/vvull/p/11881887.html