0
点赞
收藏
分享

微信扫一扫

vue el-input 只能输入数字与限制长度

<el-input
             placeholder="只能填写24位数字"
             v-model="scope.row.icode"
             type="text"
             maxlength="24"
             οninput="value=value.replace(/[^\d]/g,'')"
         >
         </el-input>

 

举报

相关推荐

0 条评论