`
Ethan.Lu
  • 浏览: 6369 次
  • 性别: Icon_minigender_1
  • 来自: 珠海
社区版块
存档分类
最新评论
文章列表
最近在用js做日历,用到了Date类的setDate,setMonth和setFullYear。例如当前日期是2016-10-31,而我需要创建2016-11-01这个日期,我习惯这样做: var target = new Date(); // 当前日期2016-10-31 target.setFullYear(2016); target.setMonth(10); // 11月 target.setDate(1);  最终target的日期却显示2016-12-01。 debug后发现,问题存在于当前日期和setMonth这步。当前日期有31日,但是当setMonth后 ...
如何在Alfresco中快速部署workflow和model,避免频繁地重启tomcat?以Alfresco 4.2.e Community版本为例,Alfresco Repository(http://localhost:8080/alfresco)中有两个console页面实现快速部署workflow和model,分别是http://localhost:8080/alfresco/faces/jsp/admin/workflow-console.jsp和http://localhost:8080/alfresco/faces/jsp/admin/repoadmin-console.jsp。 ...
在.Net Compact Framework 3.5中将数据加压 using System; using System.Linq; using System.Collections.Generic; using System.Text; using System.IO; using System.IO.Compression; namespace MRSDataSync.Helper { public class GZip { private Encoding encode = Encoding.UTF8; pu ...
前言:记录我用GIMP 2时遇到的一个问题和解决方法,无技术含量。。。   GIMP 2是免费的绘图工具软件,足够我这种业余设计用的了。   但是刚开始用GIMP 2时就遇到了一个大问题,就是工具选项栏中的数值会丢失,怎么形容好 ...
前言:简单记录我是如何获取log4j的配置文件log4j.properties,没什么技术含量的。。。   用log4j写日记需先配置log4j,编写log4j的配置文件,可以用xml文件或者properties文件,我选择用properties文件,然后就是要获取这个配置文件,要用到org.apache.log4j.PropertyConfigurator类的configure方法。简单用户是直接用log4j.properties的文件名作为参数,如下: PropertyConfigurator.configure("log4j.properties"); 但是 ...
前言:简单地记录自己是如何用Java读取.properties文件的,可以说没什么技术含量的。。。   方法一:   Properties prop = new Properties(); InputStream is = Object.class.getResourceAsStream("/test.properties"); prop.load(is);  需要catch或者抛出IOException。   方法二:   Properties prop = new Properties(); InputStream is = Object.cl ...
Global site tag (gtag.js) - Google Analytics