I looking for VueJS 2 text input
mask, I didn't find anything useful after research.
I would like to mask user input, eg
192.169.0.1/32
I found vue library like v-mask , but it is only for npm, when I do not using it.
Am I missing something?
One of the solution is inputmask library in combination with jQuery to manipulate with DOM elements. As you mention that you don't use npm
, you need to include script in right order:
<script src="jquery.js"></script>
<script src="inputmask.js"></script>
<script src="inputmask.extensions.js"></script>
Working example: jsFiddle
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.