2021年4月30日

vue中设置input输入框的值为正整数,不能为负数和小数

摘要: 一、新建文件夹 二、int.js中新增自定义指令 代码如下: import Vue from 'vue' Vue.directive('Int', { bind: function (el) { const input = el.getElementsByTagName('input')[0] in 阅读全文

posted @ 2021-04-30 15:30 被窝暖暖嘻嘻嘻 阅读(2777) 评论(0) 推荐(1)

导航