RadioButtonList 选择Enter或者ctrl+Enter <td><asp:RadioButtonList ID="rdSetQuick" runat="server"> <asp:ListItem Value="0" Selected="True">Enter</asp:ListItem><asp:ListItem Value="1">ctrl+Enter</asp:ListItem></asp:Rad Read More
posted @ 2012-03-06 16:07 wdadp Views(1391) Comments(1) Diggs(2)
先看如下一段代码:function isValidMail(sText){var reMail = /^(?:\w+\.?)*\w+@(?:\w+\.?)*\w+$/;return reMail.test(sText);}似乎这样验证像sofish@163.com这样的邮箱是没问题的。但,由于仔细看一下在AT(@)后面的非捕获性引用中,使用的是*(出现任意次):var reMail = /^(?:\w+\.?)*\w+@(?:\w+\.?)*\w+$/;那么,也包括出现0次,这样的话。像sofish@163com这样的邮箱也是通过验证的。 显然,"."是必须至少出现一次的, Read More
posted @ 2011-09-28 10:17 wdadp Views(209) Comments(0) Diggs(0)