上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: 我们知道,WCF服务端是先定义服务协定,其实就是一个接口,然后通过实现接口来定义服务类。那么,有一个问题,如果一个服务类同时实现N个接口(也就是有N个协定)呢?结果会如何? 不必猜,我们还是通过实验来说明吧。 首先,参照下面代码写好服务器端,代码中,我写了三个协定,然后一个服务类同时实现它们。 接着 阅读全文
posted @ 2016-08-09 10:54 闫宝平 阅读(225) 评论(0) 推荐(0)
摘要: 上一篇文章中,我们抛出了N个问题:WCF到底难不难学?复杂吗?如果复杂,可以化繁为简吗? 其实,这些问题的答案全取决于你的心态,都说“态度决定一切”,这句话,不知道各位信不信,反正我是信了。首先,敢于挑战自我,乐于接受新事物的 人,就不会觉得有啥难学的,“世上有难事,只怕有心人”;再者,WCF当然复 阅读全文
posted @ 2016-08-09 10:50 闫宝平 阅读(228) 评论(0) 推荐(0)
摘要: WCF难学吗? 是啊,这问题估计很多人都会问,也包括阿拉在内,也有此深刻而严重的凝问。 也有人说:“如何某项技术可以化繁为简,学起来轻松一点就好了。”也许,人类开生就摆脱不了一种习性——懒惰;不过,也有人认为,很多时候,人们是不是总喜欢把简单的事情复杂化,那么,很多人都觉得很复杂的WCF算不算被人们 阅读全文
posted @ 2016-08-09 10:48 闫宝平 阅读(429) 评论(0) 推荐(1)
摘要: --查询建立时间--表select * from sysobjects where id=object_id(N'表名') and xtype='U' --表的结构select * from syscolumns where id=object_id(N'表名') --存储过程select * fr... 阅读全文
posted @ 2015-01-27 10:53 闫宝平 阅读(3508) 评论(1) 推荐(1)
摘要: round() 遵循四舍五入把原值转化为指定小数位数,如:round(1.45,0) = 1;round(1.55,0)=2floor()向下取整 如:floor(1.45)= 1,floor(1.55) = 1 ,floor(-1.45)= -2 ,floor(-1.55) = -2ceiling... 阅读全文
posted @ 2014-12-02 13:42 闫宝平 阅读(19882) 评论(0) 推荐(1)
摘要: //第一参数是:Json对象,第二个是 序号 第三个 页数 第四 当前页数String.prototype.format = function (args, sid, pagesize, currentpage) { if (arguments.length > 0) { var result =... 阅读全文
posted @ 2014-08-21 17:16 闫宝平 阅读(904) 评论(1) 推荐(0)
摘要: 第一种方式:使用js函数eval();testJson=eval(testJson);是错误的转换方式。正确的转换方式需要加(): testJson = eval("(" + testJson + ")");eval()的速度非常快,但是他可以编译以及执行任何javaScript程序,所以会存在安全... 阅读全文
posted @ 2014-08-21 16:54 闫宝平 阅读(277) 评论(0) 推荐(0)
摘要: 译自官方手册:jQuery.each()对数组或对对象内容进行循环处理jQuery.each( collection, callback(indexInArray, valueOfElement) )collection 遍历的对象或数组callback(indexInArray, valueOfE... 阅读全文
posted @ 2014-08-21 14:38 闫宝平 阅读(164) 评论(0) 推荐(0)
摘要: 可使用以下代码://Create our own namespaces for the output XmlSerializerNamespaces ns = new XmlSerializerNamespaces (); //Add an empty namespace and empty va... 阅读全文
posted @ 2014-07-11 13:37 闫宝平 阅读(2853) 评论(0) 推荐(0)
摘要: // Underscore.js 1.3.3// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.// Underscore is freely distributable under the MIT license.// Portions of Underscore are inspired or borrowed from Prototype,// Oliver Steele's Functional, and John Resig's Micro-Templating.// For all details and docu 阅读全文
posted @ 2014-04-08 10:04 闫宝平 阅读(6500) 评论(4) 推荐(3)
上一页 1 ··· 4 5 6 7 8 9 下一页