vue引入fastclick设置输入框type="number"报错Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection.的解决办法

将输入框type设为text,通过正则验证输入的值

posted @ 2019-04-17 10:24  shifeng~  阅读(2655)  评论(0编辑  收藏  举报