xmlתJTreeµÄ¼òµ¥JavaÎÊÌâ - Java / Java EE
ÏÖÓÐÈçÏÂÒ»¸öxmlÎĵµ£¨¿ÉÒÔÊÇxml¸ñʽµÄ×Ö·û´®£©£º <Department id='-1'> <Department id='1' pid='-1' name='D'> <Department id='4' pid='1' name='A'> <Department id='6' pid='4' name='C'> </Department> </Department> </Department> <Department id='2' pid='-1' name='E'> <Department id='5' pid='2' name='B'> <Department id='7' pid='5' name='G'> </Department> </Department> </Department> <Department id='3' pid='-1' name='F'> </Department> </Department> ÈçºÎת»»³ÉJTree£¬ÆäÖÐJTreeÀïÍ·Ö»ÒªÓÐnameÕâ¸öÊôÐԾͿÉÒÔÁË£¡
×Ô¼º¶¥¸ö~ °ÑÊ÷¸ùºÍ¸ù½Úµã´«Èë¼´¿É£¡ÒýÓà private DefaultMutableTreeNode buildTree( DefaultMutableTreeNode dmtn, Element element) { if(element.nodeCount() != 0) { List<Element> elementList = element.elements(); for(int i = 0; i < elementL¡¡ ·Ç³£¸Ðл£¡
Ïà¹ØÎÊ´ð£º
ÎÒJSPµÄÒ³ÃæÊÇ£º <%@ page language="java" contentType="text/html; charset=gb2312" %> <script> function Save(){ xmlHttp=GetXmlHttpObject() if(xmlHttp==nul ......
¸÷·´óÏÀ¸ø¸ö˼·£¬²»ÊÇÔÚÏßµÄÄÇÖÖ£¬¾ÍÊÇÒ»¸ö×öÆÕͨµÄÓ¦ÓóÌÐò¡£ ´Ê¿âÔõôÉú³ÉÄØ£¿ ²»»á¡£ ÒýÓà ´Ê¿âÔõôÉú³ÉÄØ£¿ ÕÒ±¾×Öµä ÒýÓà ´Ê¿âÔõôÉú³ÉÄØ£¿ Êý¾Ý¿â ºÇºÇ ÓÃmap ¼üÖµ¶ÔÓ¦ Èç¹ûÓÃÊý¾Ý¿ ......
Private Sub Command1_Click() Dim MyString() As String Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£ ReDim MyString(LOF(1) - 1) Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
tableÔõô°ó¶¨Êý¾Ý¿â£¬²¢ÇÒÓÃJavaScriptʵÏÖ·Ò³¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£JavaScriptÄÜÏòJSPÒ³Ãæ´«µÝ²ÎÊýÂð Äã˵µÄÎÊÌâÓеãÄǸö¡£¡££¬²»ºÃ»Ø´ð¡£¡£¡£¡£ jspÖÐtableÊÇÐèÒªhtml´úÂëÓëÒ³Ãæ¶Ë»ñÈ¡Êý¾Ý¿â²éѯºóµÄÐÅÏ¢½øÐÐ ......