给button添加点击事件,通过id(getElementById)获取输入框的value。 弹框提示如图 转载于:https://www.cnblogs.com/duguangming/p/10778915.html