摘要:
DateTimestart = new DateTime();DateTimeend = new DateTime();Period p = new Period(start,end,PeriodType.days());最后一个参数如果不写的话,下面的返回值将会是错误的。int day = p.getDays();period类不明白原理。 阅读全文
摘要:
Struts2的property标签可以把“<”、“>”、“&”等等自动转成类似&xxxx;的HTML转意表示,在显示一段带HTML格式的文本时这功能很讨厌,可以设property标签的escape="false",即可关闭自动转码操作。 阅读全文