type 的合法值
text - 文本输入键盘
number - 数字输入键盘
idcard - 身份证输入键盘
digit - 带小数点的数字键盘
confirm-type 设置键盘右下角按钮的文字,仅在type='text’时生效
send - 右下角按钮为“发送”
search - 右下角按钮为“搜索”
next - 右下角按钮为“下一个”
go - 右下角按钮为“前往”
done - 右下角按钮为“完成”
其他相关文章:
微信小程序 - 设置input只能输入数字:https://blog.csdn.net/csu_passer/article/details/88584126
官网链接:https://developers.weixin.qq.com/miniprogram/dev/component/input.html