摘要: public static string DislodgeHtml(string strHtml){string[] aryReg ={@"<script[^>]*?>.*?</script>",@"<(\/\s*)?!?((\w+:)?\w+)(\w+(\s*=?\s*(([""'])(\\[""'tbnr]|[^\7])*?\7|\w+)|.{0})|\s)*?(\/\s*)?>",@"([\r\n])[\s]+",@"&a 阅读全文
posted @ 2013-03-28 22:22 等待是一生最初的苍老 阅读(160) 评论(0) 推荐(0)
摘要: onclick="var li=document.getElementsByName('ckid');for(var i=0;i<li.length;i++){li[i].checked=checked;}" 阅读全文
posted @ 2013-03-28 22:20 等待是一生最初的苍老 阅读(135) 评论(0) 推荐(0)
摘要: function html_encode(str) { var s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, ">"); s = s.replace(/</g, "<"); s = s.replace(/>/g, ">"); s = s.replace(/ /g, ""); s = s.replace(/\'/g, "'"); 阅读全文
posted @ 2013-03-28 22:19 等待是一生最初的苍老 阅读(179) 评论(0) 推荐(0)
摘要: 后台代码<br>JsonResult jr = new JsonResult() { Data = new { Filename = filename, Convented = convented, Datetime_now = datetime_now } }; 返回的json格式 {"ContentEncoding":null,"ContentType":null,"Data":{"Filename":"d:/ 资源/20121218041946587/20121218041946587. 阅读全文
posted @ 2013-03-28 22:18 等待是一生最初的苍老 阅读(164) 评论(0) 推荐(0)
摘要: function getCookie(name){var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));if(arr!=null)return unescape(arr[2]);return null;} 阅读全文
posted @ 2013-03-28 22:17 等待是一生最初的苍老 阅读(148) 评论(0) 推荐(0)
摘要: 获取父页元素并触发事件 parent.$(window.parent.document).find("#父页标签标识").change() 获取父页元素的值 $("#父页标签标识", window.parent.document).val() 阅读全文
posted @ 2013-03-28 22:16 等待是一生最初的苍老 阅读(141) 评论(0) 推荐(0)