文字遮罩 (text-mask)
Text Mask is an input mask library. It can create input masks for phone, date, currency, zip code, percentage, email, and literally anything!
文本蒙版是输入蒙版库。 它可以为电话,日期,货币,邮政编码,百分比,电子邮件以及几乎所有内容创建输入掩码!
There are convenient wrappers for React, Angular 2, Ember, and Vue.
有用于React,Angular 2,Ember和Vue的便捷包装器。
现场演示 (Live Demo)
https://text-mask.github.io/text-mask/
https://text-mask.github.io/text-mask/
翻译自: https://vuejsexamples.com/input-mask-for-react-angular-ember-vue-plain-javascript/