不能输入非数字除了.
<el-input type="text" oninput="value=value.replace(/[^\d.]/g,'')" ></el-input>
也可以用type="number"会有样式问题
<el-input type="number" ></el-input>
不能输入非数字除了.
<el-input type="text" oninput="value=value.replace(/[^\d.]/g,'')" ></el-input>
也可以用type="number"会有样式问题
<el-input type="number" ></el-input>