Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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¡­¡­
·Ç³£¸Ðл£¡


Ïà¹ØÎÊ´ð£º

¹ØÓÚAJAXºÍJSPµÄһЩСÎÊÌâ¡« - Java / Web ¿ª·¢

ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
  %>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......

JAVAµç×Ӵʵ䣿 - Java / Java SE

¸÷·´óÏÀ¸ø¸ö˼·£¬²»ÊÇÔÚÏßµÄÄÇÖÖ£¬¾ÍÊÇÒ»¸ö×öÆÕͨµÄÓ¦ÓóÌÐò¡£


´Ê¿âÔõôÉú³ÉÄØ£¿

²»»á¡£

ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
ÕÒ±¾×Öµä

ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
Êý¾Ý¿â ºÇºÇ

ÓÃmap ¼üÖµ¶ÔÓ¦

Èç¹ûÓÃÊý¾Ý¿ ......

vb¶ÁÈ¡ÓÃwordת»»³ÉµÄxmlÀïµÄÊý¾Ý - VB / »ù´¡Àà

Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£
ReDim MyString(LOF(1) - 1)
  Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......

JSP µÄtable Ôõô°ó¶¨Êý¾Ý¿â¡£¡£ - Java / Java EE

tableÔõô°ó¶¨Êý¾Ý¿â£¬²¢ÇÒÓÃJavaScriptʵÏÖ·­Ò³¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£JavaScriptÄÜÏòJSPÒ³Ãæ´«µÝ²ÎÊýÂð
Äã˵µÄÎÊÌâÓеãÄǸö¡£¡££¬²»ºÃ»Ø´ð¡£¡£¡£¡£

jspÖÐtableÊÇÐèÒªhtml´úÂëÓëÒ³Ãæ¶Ë»ñÈ¡Êý¾Ý¿â²éѯºóµÄÐÅÏ¢½øÐÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ