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 的验证插件来验证表单。我有一个应该只包含字母或数字的字段。我已经尝试了以下正则表达式,但它仍然允许诸如 ' ; :
[a-zA-Z 0-9]$
我究竟做错了什么?
提前致谢
尝试这个:
^[a-zA-Z 0-9]*$
如果这是必填字段,则将星号更改为加号:-
^[a-zA-Z 0-9]+$
试试这个表达式::
如果包装术语的定义在随后的 中,使用<dfn>in 在语义上是否有效?如MDN 所述,这是正确使用还是必须在段落或定义列表中专门使用。我想像这样格式化我的列表:<table>&
<dfn>
<table>
&