![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开发日常踩坑日记
文章平均质量分 62
程序员海军
这个作者很懒,什么都没留下…
展开
-
element-ui el-input 验证只能输入数字和小数点
要在 Element UI 的 el-input 组件中使用正则表达式验证只能输入数字和小数点,可以通过监听 @input 事件,在事件处理函数中使用正则表达式进行验证。请注意,这只是一个简单的示例,仅限于验证输入的值是否为数字和小数点。上述代码中,我们在 el-input 组件上绑定了一个 @input 事件,并在事件处理函数 handleInput 中使用正则表达式 /该正则表达式表示只允许输入数字和小数点,其中 [0-9] 表示数字范围,. 表示小数点, 表示匹配零个或多个。原创 2023-07-03 09:31:38 · 1441 阅读 · 0 评论 -
Vue 解决报错 You are using the runtime-only build of Vue where the template compiler is not available.
Vue 运行时 + 编译器 vs. 只包含运行时 区别原创 2023-02-15 17:35:06 · 6672 阅读 · 1 评论