- 博客(7)
- 收藏
- 关注
原创 flush and clear
very classic explanation of flush and clear which is used in jpa(hibernate) and should be used very carefully as the article desribed "it has a fatal effect on performance."http://www.developerfu...
2012-09-25 16:24:48 182
原创 FireFox 与 Chrome 自动换行
Firefox is different from Chrome in implementing the word-wrap, but we can use one Class to make these two browsers compatible, as following:.word_wrap{ //make Chrome word wrap word-wrap: b...
2012-09-11 11:33:10 179
原创 Servlet Download Flie Function
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String fileName = req.getParameter("fileName"); String filePath = "c:/file fo...
2012-09-04 15:13:12 119
原创 <button> default type
in different browser has different type if you not assign specific type. In IE8, the default type would be type="submit", not as mentioned in http://www.w3school.com.cn/tags/tag_button.asp . in FF, C...
2012-08-02 16:03:15 253
将数字转换成字符串
昨天去一家公司面试,做一道将100000000之内数字转成字符串的算法题,一看位数不多,想用穷举法,结果弄了半天没弄出来,今天又想了下,写了点代码。如下。[code="java"]public class Convert { static String number[] = {"零","一","二","三","四","五","六&
2011-10-21 13:52:12 208
原创 form在js中提交
[code="java"] function click(){ // 可用两种方式设置form的action // 第一种 var form = document.getElementById('form'); form.action="路径"; //第二种 docum...
2011-10-11 15:57:35 89
原创 jstl包及引用声明
各JSTL相关引用标记 http://java.sun.com/jsp/jstl/fmt /WEB-INF/tlds/fmt.tld http://java.sun.com/jsp/jstl/fmt-rt /WEB-INF/tlds/fmt-rt.tld ...
2011-10-10 09:50:31 414
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人