ICode9

精准搜索请尝试: 精确搜索
  • vue 输入框输入4位一空格,控制16位有效字符2022-06-24 11:32:15

    需求:输入卡号的时候,四位一空格显示,控制16位有效字符 实现过程 <input type="tel" v-model="code" ref="code" @input="cardCount(e)" placeholder="请输入" />  解决方法如下: cardCount() { // 获取当前光标的位置 var caret =this.$refs.code.selec

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有