摘要: document.getElementById 有時會抓name放過了id ,據說是IE的一個BUG;
閱讀全文
posted @
2008-04-19 21:10 零全零美 閱讀(1408) |
評論 (1) |
編輯 收藏
摘要: $()這個創意確實是從Protoype偷來的,但是Protoype是不是原創,那我就無從得知了。
閱讀全文
posted @
2008-04-19 20:40 零全零美 閱讀(244) |
評論 (0) |
編輯 收藏
摘要: 按照文檔的說明,自己寫了一個簡單的demo(簡直就是照抄,嘿嘿),但是,就這樣也會出毛病,我真暈啊!
閱讀全文
posted @
2008-04-19 20:06 零全零美 閱讀(431) |
評論 (0) |
編輯 收藏
摘要: 當使用 fail-fast iterator 對 Collection 或 Map 進行迭代操作過程中嘗試直接修改 Collection / Map 的內容時,即使是在單線程下運行, java.util.ConcurrentModificationException 異常也將被拋出。
閱讀全文
posted @
2008-04-18 00:33 零全零美 閱讀(195) |
評論 (0) |
編輯 收藏
摘要: 無其他條件
1select * from n_fwy_a a left join n_fwy_b b on a.id=b.id order by a.id;
2select * from n_fwy_a a ,n_fwy_b b where a.id=b.id(+) order by a.id;
這兩重寫法的查詢的結果一致
在主表加附加條件
1select * from n_fwy_a a ,n_fwy_b b where a.id=b.id(+) and a.id >5 order by a.id;
2select * from n_fwy_a a left join n_fwy_b b on a.id=b.id where a.id>5 order by a.id;
3select * from n_fwy_a a left join n_fwy_b b on a.id=b.id and a.id>5 order by a.id;--no
這三種寫法
閱讀全文
posted @
2008-04-17 23:59 零全零美 閱讀(2700) |
評論 (0) |
編輯 收藏
Insert into 復制表名稱 select 語句 (復制表已經存在)
create table 復制表名稱 as select 語句 (復制表不存在)
posted @
2008-04-17 23:54 零全零美 閱讀(725) |
評論 (0) |
編輯 收藏
在JSP中使用Spring其實很容易,主要用到Spring的WebApplicationContextUtils.getWebApplicationContext函數。
要再JSP里面得到ApplicationContext需要這么做.
首先
import="org.springframework.web.context.support.*,org.springframework.context.*"
然后可以通過如何做法:
ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
這樣就得到了ApplicationContext,就可以操作Spring了。
JSP本來就可以認為是一個Servlet,所以使用getServletContext()就是理所應當了。
posted @
2008-04-17 23:45 零全零美 閱讀(126) |
評論 (0) |
編輯 收藏