input输入框提交输入的值的方式

给button添加点击事件,通过id(getElementById)获取输入框的value。

弹框提示如图

原文地址:https://www.cnblogs.com/duguangming/p/10778915.html