工程是一门科学,科学是严谨的。
上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 1 HTMLElement.prototype.__defineGetter__("currentStyle", function () {2 return this.ownerDocument.defaultView.getComputedStyle(this, null);3 });example:1 document.body.currentStyle['width'] 阅读全文
posted @ 2013-08-19 13:54 大圣的笑 阅读(2074) 评论(0) 推荐(0) 编辑
摘要: 1.先创建一个WCF服务库2.创建一个Console控制台,服务将寄宿在该应用程序上,该程序一旦关闭,服务将停止。控制台代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using WcfServiceLibrary; 6 using System.ServiceModel; 7 using System.ServiceModel.Description; 8 9 namespace wcfConsole10 {11 class Pro... 阅读全文
posted @ 2013-07-22 14:50 大圣的笑 阅读(2337) 评论(0) 推荐(0) 编辑
摘要: lucene.net + 盘古分词 引用: 1.Lucene.Net.dll 2.PanGu.Lucene.Analyzer.dll 3.PanGu.HighLight.dll 4.PanGu.dll 1.建立索引: 2.搜索: 多字段搜索 阅读全文
posted @ 2013-07-16 18:11 大圣的笑 阅读(3710) 评论(10) 推荐(0) 编辑
摘要: 1 /* 2 * 模拟POST请求,获取response内容 3 */ 4 protected function curl($url, $type, $header, $data) { 5 $CURL_OPTS = array ( 6 CURLOPT_CONNECTTIMEOUT => 10, 7 CURLOPT_RETURNTRANSFER => true, 8 CURLOPT_SSL_VERIFYPEER => false, 9 ... 阅读全文
posted @ 2013-06-25 22:32 大圣的笑 阅读(10795) 评论(0) 推荐(1) 编辑
摘要: 1 if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) {2 $(window).load(function () {3 $('input:-webkit-... 阅读全文
posted @ 2013-06-24 16:47 大圣的笑 阅读(3580) 评论(0) 推荐(0) 编辑
摘要: 客户端JS: 服务端代码: PS:客户端的jsonp参数是用来通过url传参,传递jsonpCallback参数的参数名,比较拗口,通俗点讲: 以正常ajax请求方式就可以获得数据。 阅读全文
posted @ 2013-03-29 19:46 大圣的笑 阅读(63928) 评论(2) 推荐(5) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Runtime.InteropServices; 6 7 namespace winInstallService 8 { 9 10 class ServiceInstaller 11 { 12 #region Private Variables 13 private string _servicePath; ... 阅读全文
posted @ 2013-03-29 16:52 大圣的笑 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 项目处理过程需要保存信息在session里,但是调试中一直获取不到,各种存储模式,都没能解决问题。最后发现问题的根源在cookie的保存路径上,session是基于cookie的,cookie路径与调试环境不一致,session自然也一样,所以获取不到。 阅读全文
posted @ 2013-03-23 20:50 大圣的笑 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 将这一段JS去掉,它是以ajax的方式加载的JS,有些浏览器不允许这样访问JS:1 $.ajax({async:false,type: "GET",url: "../js/theme.js",dataType: "script",2 error :function(){alert('当前皮肤加载出错,请确认皮肤【'+settings.theme+'】是否存在')}3 }); 直接在要验证的页面导入样式JS:1 <script src="../js/theme.js" type= 阅读全文
posted @ 2013-03-11 14:37 大圣的笑 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 1 /// 2 /// 获取主体矩形边界坐标,顺时针 3 /// 4 /// 目标图片 5 /// 模板图片 6 /// 7 private static Point[] GetTarget(Bi... 阅读全文
posted @ 2013-03-07 19:16 大圣的笑 阅读(373) 评论(1) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页