Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做的是只用 jquery 验证一个文本字段。所以我想要它做的基本上是查看一个带有月份名称的数组,然后说这个人拼错了它没有提交的月份。
我不确定如何开始。
首先,我认为 j089691 的评论是正确的。可能有更好的方法来做到这一点。
如果出于某种原因,你想这样做......你可以这样做http://jsfiddle.net/uTRXb/