在input标签中有一个confirm-type
属性,即设置键盘右下角按钮的文字,仅在type=’text’时生效
<input type="text" placeholder="请输入内容" confirm-type="done"/>
<input type="text" bindinput="listenWallText" bindfocus='settingMbShow' bindblur='settingMbNoShow' value="{{content}}" placeholder='一起聊聊...' confirm-type="send" bindconfirm="sendToWall"></input>
confirm-type 有效值:
send
右下角按钮为“发送”search
右下角按钮为“搜索”next
右下角按钮为“下一个”go
右下角按钮为“前往”done
右下角按钮为“完成”
bindconfirm 即为回车事件,为它绑定上需要触发的事件即为回车事件,为它绑定上需要触发的事件sendToWall方法