摘要: 一、经典模式:publicclass Singleton { private static Singleton instance;private Singleton() { }publicstatic Singleton GetInstance() { if(instance==null) { instance=new Singleton(); } return instance; } }解析如下: 1)首先,该Singleton的构造函数必须是私有的,以保证客户程序不会通过new()操作产生一个实例,达到... 阅读全文
posted @ 2012-12-29 12:43 chay 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1. 值的设置 dateTimeBox $('#StartDate').val(startTime); dateBox $('#StartDate').datebox('setValue', startTime); combobox $('#dept').combobox('setValue',depment);//设值 $('#dept').combobox('setText',depment);//设置文本值 Text $('#name').val(name);2 阅读全文
posted @ 2012-12-29 12:24 chay 阅读(23945) 评论(0) 推荐(0) 编辑