上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 46 下一页
摘要: namespace StatePatternSample { public class Account { public State State {get;set;} public string Owner { get; set; } public Account(string owner) { ... 阅读全文
posted @ 2017-05-15 17:34 小小高 阅读(172) 评论(0) 推荐(0)
摘要: function domChange(domId, callback) { // select the target node var target = document.getElementById(domId); // create an observer instance var observ... 阅读全文
posted @ 2017-05-11 18:28 小小高 阅读(913) 评论(0) 推荐(0)
摘要: namespace MediatorPattern { // 抽象牌友类 public abstract class AbstractCardPartner { public int MoneyCount { get; set; } public AbstractCardPartner() { Mo... 阅读全文
posted @ 2017-05-08 13:29 小小高 阅读(195) 评论(0) 推荐(0)
摘要: namespace ObserverInNET { class Program { // 委托充当订阅者接口类 public delegate void NotifyEventHandler(object sender); // 抽象订阅号类 public class TenXun { ... 阅读全文
posted @ 2017-05-08 13:18 小小高 阅读(278) 评论(0) 推荐(0)
摘要: // 抽象聚合类 public interface IListCollection { Iterator GetIterator(); } // 迭代器抽象类 public interface Iterator { bool MoveNext(); Object GetCurrent(); ... 阅读全文
posted @ 2017-05-08 13:05 小小高 阅读(127) 评论(0) 推荐(0)
摘要: js 阅读全文
posted @ 2017-05-05 17:07 小小高 阅读(322) 评论(0) 推荐(0)
摘要: 问题如图, 解决方法如下: 阅读全文
posted @ 2017-05-03 16:59 小小高 阅读(525) 评论(0) 推荐(0)
摘要: //两个时间相差天数 兼容firefox chrome function datedifference(sDate1, sDate2) { //sDate1和sDate2是2006-12-18格式 var dateSpan, tempDate, iDays; sDate1 = Date.parse(sDat... 阅读全文
posted @ 2017-04-28 14:45 小小高 阅读(51668) 评论(0) 推荐(2)
摘要: 阅读全文
posted @ 2017-04-28 12:16 小小高 阅读(142) 评论(0) 推荐(0)
摘要: /// /// 客户端调用 /// class Client { static void Main(string[] args) { // 定义外部状态,例如字母的位置等信息 int externalstate = 10; // 初始化享元工厂 ... 阅读全文
posted @ 2017-04-28 10:17 小小高 阅读(203) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 46 下一页