摘要: 加载 Google 地图 APIscript src="http://ditu.google.cn/maps?file=api&v=2&key=abcdefg&sensor=true_or_false" type="text/javascript"/scriptkey: 注册密匙sensor: 参数以指明此应用程序是否使用传感器来确定用户位置地图显示的容器:DOM 元素div id="map_div" style="width: 800px; height: 500px"/div 并使用样式属性设置其尺寸。地图会自动使用容器尺寸调整自身的尺寸,除非使用构造函数中的 GMapOp 阅读全文
posted @ 2010-03-08 21:37 软践 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 一、NUnit (用于编写单元测试)官方网站:http://www.nunit.org二、.NET Reflector (用于分析程序集,可以反编译)Reflector下载地址:http://www.aisto.com/roeder/dotnet三、Regulator (用于生成正则表达式)下载地址:http://sourceforge.net/projects/regulator/ 阅读全文
posted @ 2010-03-08 15:42 软践 阅读(139) 评论(0) 推荐(0) 编辑
摘要: string mystr = string.Empty; string mystr = ""; //定义空字符串,两种方法 if (mystr == "" && mystr.Length ==0 && mystr == string.Empty) { CommonClass.MsgBox("yes!"); } 运行弹出提示“yes!”定为空字符串的几种写法,按照性能从高到低的顺序是:s.Length == 0 优于 s == string.Empty 优于 s == "" 阅读全文
posted @ 2010-03-08 15:16 软践 阅读(183) 评论(0) 推荐(0) 编辑