应用场景主要是在搜索的时候输入框输入完内容以后,点击软键盘上的回车调用搜索方法,代码如下: wxml: <input placeholder="粘贴商品标题或直接输入" value="{ {input}}" type="text" confirm-type="搜索" bindconfirm="confirmTap"></input> confirm-type: 设置软键盘右下角文案,只有type=“text” 时生效。 只能设置成:发送,搜索,下一个,前往,完成。(可根据不同