当前位置:网站首页>表单校验 隐藏的输入框 显示才校验
表单校验 隐藏的输入框 显示才校验
2022-07-29 01:20:00 【小菜鸟码住】
const validateBz = (rule, value, callback) => {
if (value === '' && wzlfForm.value.wzlf.indexOf("其它")>-1 ) {
callback(new Error('其他项不可为空'))
} else {
callback()
}
}
rules: {
bz: [{ validator:validateBz, trigger: "blur" }],
},
边栏推荐
猜你喜欢

As long as I run fast enough, it won't catch me. How does a high school student achieve a 70% salary increase under the epidemic?

使用POI,实现excel文件导出,图片url导出文件,图片和excel文件导出压缩包

E-commerce keyword research helps data collection

Semiconductor chip industry chain

DSP vibration seat

动态内存与智能指针

【公开课预告】:快手GPU/FPGA/ASIC异构平台的应用探索

为什么 BI 软件都搞不定关联分析
![Golang startup error [resolved]](/img/9c/c4757c73d4acd8edf22afa8107fb66.png)
Golang startup error [resolved]
![[7.21-26] code source - [sports festival] [Dan fishing war] [maximum weight division]](/img/0b/052d66712b987e3507aa6dfadcabe4.png)
[7.21-26] code source - [sports festival] [Dan fishing war] [maximum weight division]
随机推荐
[the road of Exile - Chapter 7]
Force deduction brush question (2): sum of three numbers
Yocto project download and compilation
Data platform data access practice
Leetcode/ and continuous shortest subarray greater than or equal to target
【7.21-26】代码源 - 【体育节】【丹钓战】【最大权值划分】
leetcode/和大于等于target的连续最短子数组
Mathematical modeling -- cold proof simulation of low temperature protective clothing with phase change materials
Google Cloud Spanner的实践经验
Mathematical modeling -- Optimization of picking in warehouse
Force deduction brush question (1): sum of two numbers
The scientific research environment has a great impact on people
LeetCode 练习——剑指 Offer 45. 把数组排成最小的数
Have you ever encountered the situation that the IP is blocked when crawling web pages?
【流放之路-第四章】
Implementation of 10m multifunctional signal generator with FPGA
[7.21-26] code source - [square count] [dictionary order minimum] [Z-type matrix]
Regular filtering data learning notes (①)
Secret skill winter tide branding skill matching
Make logic an optimization example in sigma DSP - data distributor