X龙@China .Net 'blog

需要的不仅仅是工作,而是通过努力得来的美好将来。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年1月17日

摘要: 1. 模态窗体提交打开新窗口,解决:在<head>中加<base target="_self"/>2. 窗体缓存问题, 解决:在打开的url中加入参数t=new Date().getTime()3. 窗体重重定向问题, 解决:window.name = '__self'; window.open(url,'__self'); /* url要重定向的链接 */ 阅读全文

posted @ 2012-01-17 13:27 X龙 阅读(256) 评论(0) 推荐(0) 编辑

摘要: #region过滤HTML及JAVASCRIPTpublicstaticstringcheckStr(stringhtml){System.Text.RegularExpressions.Regexregex1=newSystem.Text.RegularExpressions.Regex(@"<script[\s\S]+</script*>",System.Text.RegularExpressions.RegexOptions.IgnoreCase);System.Text.RegularExpressions.Regexregex2=newSyste 阅读全文

posted @ 2012-01-17 10:27 X龙 阅读(227) 评论(0) 推荐(0) 编辑

点击这里给我发消息http://wp.qq.com/index.html