2011年7月10日
摘要: 一、原则 1. 类设计原则 The Single-Responsibility Principle (SRP) A class should have only one reason to change. 单一职责原则(SRP) 一个类应该仅有一个引起它变化的原因。 The Open/Closed 阅读全文
posted @ 2011-07-10 15:46 ideasea 阅读(300) 评论(0) 推荐(0)
  2011年5月29日
摘要: 一、值类型1. 数值整数字面量:int x = 100; //decimal notationlong y = 0x7F; //hexadecimal notation实数字面量:double x = 1.5; //decimal notationdouble y = 1E06; //exponential notation数值字面量类型推定:如果数值字面量包含一个小数点或者包含指数部分(E),则为double类型。否则,数值字面量是下面第一个能适配的类型:int,uint, long, ulong。数值字面量后缀:float f = 1.0F;double d = 1D;decimal m 阅读全文
posted @ 2011-05-29 20:06 ideasea 阅读(1336) 评论(5) 推荐(2)
  2010年4月6日
摘要: JavaScript是一种动态的,弱类型的,基于原型的,面向对象的解释型语言。函数是JavaScript中的头等公民。一、语句:1.if语句Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->vardayOfWeek=0;if(dayOfWeek===6){}elseif(dayOfWeek===0){}else{}2.switch语句Code highlighting produced by Actipro CodeHighlighter (f 阅读全文
posted @ 2010-04-06 00:55 ideasea 阅读(2026) 评论(6) 推荐(1)

点击右上角即可分享
微信分享提示