<el-input :ref="'price' + scope.index].price"
placeholder="本平台房价" size="small" onfocus="this.select()"
oninput="this.value=this.value.replace(/[^\d.]/g,'');"></el-input>
<el-input :ref="'price' + scope.index].price"
placeholder="本平台房价" size="small" onfocus="this.select()"
oninput="this.value=this.value.replace(/[^\d.]/g,'');"></el-input>
本文标题:Vue中结合ElementUI实现:限制输入框只能输入正整数
本文链接:https://www.haomeiwen.com/subject/vnqdwktx.html
网友评论