原创 關於JavaScript針對的一些操作

//得li個數;document.getElementById('ulID').getElementsByTagName('li').length; //遍歷取值;document.write("最外層ul的li信息:"); var tr

原创 關於select option很好的總結

一基礎理解: var e = document.getElementById("selectId"); e. options= new Option("文本","值") ; //創建一個option對象,

原创 javascript數組操作大全

shift:刪除原數組第一項,並返回刪除元素的值;如果數組爲空則返回undefined var a = [1,2,3,4,5]; var b = a.shift(); //a:[2,3,4,5] b:1

原创 oracle同時插入多條記錄

google了下,大家都說:   insert into table1(id,name) select ... from table1 云云 不過我想插入的記錄不需要從table2裏面查詢出來 就寫成 insert into qx(p

原创 cookie存儲json

</pre><pre name="code" class="javascript"><pre name="code" class="html"><script src="../mall/script/json2.js" type="tex

原创 log4j.properties配置規範

整理公司的配置規範: 分xml和properties兩種配置方式 log4j.rootLogger=INFO, stdout, R (可以同時指定多個輸出目的地apender) //根logger,定義日誌級別及輸出目的地 //建議只使用

原创 JS listBox

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd