input 输入框限制只能输入小数点后最多两位的数字
微信小程序 input 输入框限制只能输入小数点后最多两位的数字wxml<input value="{{price}}" type="digit" bindinput="handleInput" placeholder='价格' name="price"></input>注*:小程序input中type属性type=“text” 全键盘模式输入type=“number” 纯数字键盘模式输入type=“digit” 带小数点的数字键盘模式输入Js hand
原创
2020-07-20 15:54:15 ·
11729 阅读 ·
4 评论