代码如下:

    <el-input  v-model="famount" placeholder="请输入内容"   @keyup.native="number"></el-input>
    methods:{
  number(){  
    this.famount=this.famount.replace(/[^\.\d]/g,'');
            this.famount=this.famount.replace('.','');
  }
 }
    

相关文章:

  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案