用表单form的bindsubmit事件提交表单。需要满足:1输入表单中需要有"name",没有"name"值后台打印为空。2点击的button按钮,需要设置:form-type="submit"。index.wxml index.js