input type=digit 不能输入小数,不能输入小数的那个点

发布于 6 年前作者 jzeng16367 次浏览最后编辑 6 年前来自 ask

小程序  type=‘digit’ value=‘{{resolve.marginNum}}’ 这样input就不能输入小数点的那个点了,你们遇到过没有,如下图

1 回复
tao42
tao421 楼5 年前

你好,最好还是提供下相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html