ajax ·¢ËÍxmlÎļþ£¬java½ÓÊÜxmlÎļþ²¢½âÎö
ºìÉ«×ÖÌåΪÖ÷Òª´úÂë
jspÒ³ÃæÖÐ
<script language="javascript">
function updateDB(operate){
var objDom=new ActiveXObject("msxml.DomDocument");
var objRoot=objDom.createElement("All");
objDom.appendChild(objRoot);
var k=document.getElementsByName("check"); //Ñ¡Ôñ¿ò
for(var i=0;i<k.length;i++){
if(k[i].checked){ //½«Ñ¡ÔñµÄÊý¾Ý×éºÏ³Éxml¸ñʽµÄÊý¾Ý
var currentRow=k[i].parentNode.parentNode;
var obj=objDom.createElement("Good");
objRoot.appendChild(obj);
var objNode=objDom.createElement("xl_id");
objNode.text=k[i].value;
obj.appendChild(objNode);
objNode=objDom.createElement("xqnum");
objNode.text=currentRow.cells[5].childNodes[0].value;
obj.appendChild(objNode);
objNode=objDom.createElement("desc");
objNode.text=currentRow.cells[7].childNodes[0].value;
obj.appendChild(objNode);
}
}
ajaxSendPost("qgApplyAction.do?method="+operate.name,objDom,null);//×Ô¼º·â×°µÄajaxÇëÇó µÚÒ»¸ö²ÎÊýΪurl,µÚ¶þ¸öΪ´«ËͲÎÊý£¬µÚÈý¸öÊǻص÷º¯Êý
}
</script>
ºǫ́action.java´úÂë½ÓÊÕxmlÎļþ ´úÂëÈçÏÂ
ÒýÈëµÄ°üÈçÏÂ
import org.w
Ïà¹ØÎĵµ£º
ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1 List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......
¼¯ºÏÀà˵Ã÷¼°Çø±ð
Collection
©ÀList
©¦©ÀLinkedList
©¦©ÀArrayList
©¦©¸Vector
©¦¡¡©¸Stack
©¸Set
Map
©ÀHashtable
©ÀHashMap
©¸WeakHashMap
Collection½Ó¿Ú
¡¡¡¡CollectionÊÇ×î»ù±¾µÄ¼¯ºÏ½Ó¿Ú£¬Ò»¸öCollection´ú±íÒ»×éObject£¬¼´CollectionµÄÔªËØ£¨Elements£©¡£Ò»Ð©
CollectionÔÊÐíÏàͬµÄÔªËØ¶øÁíһЩ²»ÐС ......
¡¡¡¡×î½üÔÚ¿ª·¢¹ý³ÌÖз¢ÏÖÒ»¸öÎÊÌ⣺BooleanÀàÐ͵ÄÖµÎÞ·¨ÔÚflexºÍjava¼ä´«µÝ£¬¾¹ýÒ»¶ÎÑо¿·¢ÏÖ£¬ÎÊÌâ³öÏÖÔÚBooleanÀàÐ͵ÄgetterºÍsetter·½·¨ÉÏ¡£
°´ÕÕjavabeanµÄ¹æ·¶£¬Ð¡²¼¶ûÀàÐ͵ÄgetterÊÇÒÔis×öǰ׺µÄ£¬µ«ÊÇ´ó²¼¶ûÀàÐ͵Ägetter¾Í³ÉÁËÒÔgetΪǰ׺ÁË£¨´ó²¼¶û×÷ΪÒýÓÃÀàÐÍ£¬ÒѾ±»ÊÓΪÆÕͨ ......
1.
ºÎʱÐèÒªÖØÐ´
equals()
µ±Ò»¸öÀàÓÐ×Ô¼ºÌØÓеēÂß¼ÏàµÈ”¸ÅÄ²»Í¬ÓÚ¶ÔÏóÉí·ÝµÄ¸ÅÄ¡£
2.
Éè¼Æ
equals()
[1]
ʹÓÃ
instanceof
²Ù×÷·û¼ì²é“ʵ²ÎÊÇ·ñΪÕýÈ·µÄÀàÐÍ”¡£
[2]
¶ÔÓÚÀàÖеÄÿһ¸ö“¹Ø¼üÓò”£¬¼ì²éʵ²ÎÖеÄÓòÓ뵱ǰ¶ÔÏóÖжÔÓ¦µÄÓòÖµ¡£
[2.1]
¶ÔÓÚ·Ç
float
ºÍ ......
1. ´´½¨Ïß³ÌÓÐÁ½ÖÖ·½Ê½£º
1£©À©Õ¹java.lang.ThreadÀà
public class ThreadTest extends Thread{ }
2£©ÊµÏÖRunnable½Ó¿Ú
public class ThreadTest implements Runnable{ }
2. ThreadÀà´ú±íÏß³ÌÀ࣬ÓÐÁ½¸ö×îÖ÷ÒªµÄ·½·¨£º
1£©run() °üº¬Ïß³ÌÔËÐÐʱËùÖ´ÐеĴúÂë¡£
Óû§µÄÏß³ÌÀàÖ»ÐèÒª¼Ì³ÐThreadÀ࣬¸²¸ÇThreadÀàµÄrun( ......