摘要: 开发中经常用到格式化,不管是时间、货币、数字都可以随心所欲。也许你用的是{0:C}方式,也许你用String.Format方式,也许你用.ToString("n"),都是格式化的方式。以下N多种格式化方式程序员们记住常用的就可以了,不常用的随用随查吧。字符型转换 转为字符串 12345.ToString("n"); //生成 12,345.00 12345.ToString("C"); //生成 ¥12,345.00 12345.ToString("e"); //生成 1.234500e+004 12345.ToS 阅读全文
posted @ 2011-04-27 09:46 骤雨新荷 阅读(1151) 评论(0) 推荐(0)
摘要: 使用在 DateTimeFormatInfo 的属性中存储的标准或自定义模式设置 DateTime 值的格式。可以通过设置可写 DateTimeFormatInfo 的关联属性用自定义模式替代标准模式。若要确定 DateTimeFormatInfo 是否是可写的,请使用 IsReadOnly 属性。下表列出了每一种标准模式的标准格式字符以及可以进行设置以修改标准模式的关联 DateTimeFormatInfo 属性。格式字符区分大小写;例如,“g”和“G”所代表的模式稍有不同。 格式字符 关联属性/说明 d ShortDatePatternD LongDatePatternf 完整日期和时间( 阅读全文
posted @ 2011-04-27 09:30 骤雨新荷 阅读(268) 评论(0) 推荐(0)
摘要: 如果是eclipse的 .提示功能没有了,照下边这样设置window->Preferences->Java->Editor->ContentAssist->Advanced 上面的选项卡Select the proposal kinds contained in the'default' content assist list: 中把 Other Java Proposals 选项打上勾就可以了。如果是想通过输入其他字母也达到输入点后的效果,看下面文章:怎么设置使MyEclipse的代码提示功能一样能像Microsoft Visual Studio 阅读全文
posted @ 2011-04-14 16:58 骤雨新荷 阅读(1422) 评论(0) 推荐(0)
摘要: JDK、Eclipse、Myeclipse、Tomcat及插件下载、安装及配置方法一、关于JDK的相关内容,参考http://hi.baidu.com/innuyasha/blog/item/db12f21f1d7e05f4e1fe0b30.html和http://hi.baidu.com/innuyasha/blog/item/b40eb011656f987fcb80c41e.html二、Eclipse下载地址 http://www.eclipse.org/downloads/根据你的操作系统选择你要下的版本,下载后直接解压即可使用,无需安装。三、Myeclipsemyeclipse官方网站 阅读全文
posted @ 2011-04-14 16:53 骤雨新荷 阅读(16592) 评论(0) 推荐(2)
摘要: ~说明~JDK 6 + TOMCAT 6 + Eclipse 3.3 + MyEclipse 6.0 / MyEclipse 6.5 安装~转载注明:转载自www.colalife.com-可乐生活,酷乐一生2008/6/18发布的Myeclipse 6.5GA和Myeclipse Bule、2007年10月中旬发布的6.0.1、8月21日发布的6.0GA版本和7月6日发布的Myeclipse 6.0 M1 和 5月16日发布的MyEclipse 5.5 GA 和5月21日发布的MyEclipse 5.5.1 GA,支持Eclipse 3.3和Microsoft Vista,强烈推荐使用。需要 阅读全文
posted @ 2011-04-14 16:28 骤雨新荷 阅读(1196) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2011-04-14 16:20 骤雨新荷 阅读(15) 评论(0) 推荐(0)
摘要: 最近我的Eclipse总是崩溃, 错误提示:MyEclipse has detected that less than 5% of the 64MB of Perm Gen (Non-heap memory) space remains. It is strongly recommendedthat you exit and restart MyEclipse with new virtual machine memoryparamters to increase this memory. Failure to do so can result indata loss. The recomme 阅读全文
posted @ 2011-04-14 16:17 骤雨新荷 阅读(329) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2011-04-14 16:15 骤雨新荷 阅读(125) 评论(0) 推荐(0)