Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这样的校验你会怎么写 | 柚子816 #17

Open
leemotive opened this issue Dec 6, 2023 · 0 comments
Open

这样的校验你会怎么写 | 柚子816 #17

leemotive opened this issue Dec 6, 2023 · 0 comments

Comments

@leemotive
Copy link
Owner

https://leemotive.github.io/2023/10/03/%E8%BF%99%E6%A0%B7%E7%9A%84%E6%A0%A1%E9%AA%8C%E4%BD%A0%E4%BC%9A%E6%80%8E%E4%B9%88%E5%86%99/index.html

这大概是几个月之前的事情了,原本没打算记下来,正好也一直没有什么时间。不过类似的需求出现了不止一次,所以还是做简单的总结吧。 问题事情是这样的,有一个checkbox 列表,可以勾选一部分,但是剩余未勾选的一定要连在一起,不可以断开。比如有10个checkbox,你可以勾选前面几个,也可以勾选后面几个,或者前后都勾选几个留下中间不勾选,但是不可以勾选中间部分,留两侧的不勾选。比如下图所示 如上四

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant