摘要:
var regs = new Array();regs[0] = new Array("idTitle","^[\\s\\S]+$","idTitleSpan","标题不能为空!","填写正确",true);regs[1] = new Array("idContent","^[\\s\\S]{15,}$","idContentSpan","内容不能少于15个字!","填写正确",true);fun 阅读全文
摘要:
正则表达式批量验证函数 function checkData(){//判断数据的正确性 var idSpans= new Array(); idSpans[0] = new Array("item_4","^[\\s\\S]{1,16}$","productName","商机名称应在1-16字以内","",true); idSpans[1] = new Array("item_5","^[\\s... 阅读全文
摘要:
.net去除html标签代码 public string NoHTML(string Htmlstring) { //删除脚本 Htmlstring = Regex.Replace(Htmlstring, @"", "", RegexOptions.IgnoreCase); //删除HTML ... 阅读全文