会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Hubelian的博客
博客园
首页
新随笔
联系
订阅
管理
2023年3月22日
vue中设置input输入框的值为正整数,不能为负数和小数
摘要: import Vue from 'vue' Vue.directive('Int', { bind: function (el) { const input = el.getElementsByTagName('input')[0] input.onkeyup = function (e) { if
阅读全文
posted @ 2023-03-22 18:24 ·休伯利安
阅读(932)
评论(0)
推荐(0)
公告