´«ÖDz¥¿ÍJavaѧϰ JavaScript¼ÓÇ¿
ÎÒ½ñÌìѧϰÁËÙ¡ÀÏʦ½²µÄJavaScript½âÎöDomÎĵµµÄ֪ʶ£º
Ò»¡¢ ½Úµã·ÖΪ3ÖÖÀàÐÍ£¬ÔªËؽڵ㣬ÊôÐԽڵ㣬Îı¾½Úµã
¶þ¡¢ ²éÕҽڵ㣺
l js´úÂë²»ÄÜдÔÚbodyÔªËصÄÇ°Ã棬js ´úÂëдÔÚ <head> ½ÚµãÖÐ, <title> ½Úµãºó, ´ËʱÐèÒªÓõ½ js µÄ window.onload º¯Êý -- ¸Ãº¯ÊýÔÚÕû¸öÎĵµ¶¼¼ÓÔØÍê³ÉÖ®ºóÖ´ÐÐ.
l ½ÚµãµÄÊôÐÔ: nodeName: nodue: nodeType:
l ²éÕÒÔªËؽڵ㣬document.getElementById("bj");
l ²éÕÒÊôÐÔ½Úµã:: cityElement.getAttributeNode("bj")
l ²éÕÒÎı¾½Úµã: Îı¾½ÚµãÒ»¶¨ÊÇij¸öÔªËؽڵãµÄ×Ó½Úµã! Ïȵõ½ÔªËؽڵã , Ò»°ãÇé¿öÏÂ: Îı¾½Úµã¶¼ÊÇÔªËؽڵãµÄΨһµÄ×Ó½Úµã,¡¡ËùÒÔ¿ÉÒÔͨ¹ýÔªËؽڵãµÄµÄ lastChild(»ò firstChild) À´»ñÈ¡
Èý¡¢ ÐèÇ󣺵ã»÷<li>½Úµã£¬µ¯³ö¶ÔÓ¦µÄÎı¾ÄÚÈÝ£¬
l ʹÓÃdocument.getElementsByTagName("li")£»»ñÈ¡ËùÓеÄli½Úµã£¬ÔÙÌí¼Óclickʼþ£¬
ËÄ¡¢ ×ӽڵ㣺
l »ñÈ¡ËùÓеÄ×ӽڵ㣺childNodes( ) ,,»ðºüºÍIE¼ÆËãµÄ×Ó½ÚµãÊý²»Ò»Ñù£¬»ðºü½«Îı¾½ÚµãºÍ¿Õ°×½ÚµãÒ²¼ÆËãÔÚÄÚ£¬¶øIE²»°üº¬¿Õ°×µÄÎı¾½Úµã£¬
l ÅжÏÔªËØÊÇ·ñÓÐ×ӽڵ㣺haschildNode£¨£©£»
l ÐèÇ󣺵ã»÷li½Úµã£¬½ÚµãµÄÄÚÈÝ×Ô¶¯·ÅÔÚÊäÈë¿òÀïÃ棬
l ÐèÇ󣺵ã»÷liʱ£¬liµÄÎı¾±äΪ“^^±±¾©”£¬ÔÙµã»÷ʱ£¬ÓÖ±ä»ØÀ´¡£ ·½·¨Ò»£ºÊ¹ÓÃsubstr£¨£©£»
l ·½·¨¶þ£ºÊ¹ÓÃÕýÔò±í´ïʽ£¬
Îå¡¢ ´´½¨½Úµã£º
l ´´½¨ÔªËؽڵ㣺
i. &nb
Ïà¹ØÎĵµ£º
1 package ºÍ importµÄ×÷ÓÃÊÇ·Ö¸îÈ«¾ÖÃüÃû¿Õ¼ä£¬±£Ö¤ÎÒÃDz»»áÓöµ½Ãû×ֵijåÍ»¡£
2 java½âÊÍÆ÷µÄ¹¤×÷³ÌÐò£º
£¨1£© Ê×ÏÈËüÕÒµ½»·¾³±äÁ¿CLASSPATH £¬ CLASSPATH°üº¬Ò»¸ö»ò¶à¸öĿ¼£¬ËüÃÇ×÷Ϊһ¸öÌØÊâµÄ¸ùʹÓ㬴ÓÕâÀïÕ¹¿ª¶Ô.classÎļþµÄËÑË÷£¬
´ÓÄǸö¸ù¿ªÊ¼£¬½âÊÍÆ÷»áÑ°ÕÒ°üÃû£¬²¢½«ËüÃÇÿһ¸öµãºÅ ......
µ±ÖØÔØequals·½·¨Ê±,×ñѹßÀý. equals²»ÊÇÿ¸öÀ඼±ØÐëÖØÔØ,µ±ÒÔϼ¸¸öÌõ¼þÂú×ã,¿ÉÒÔ²»ÖØÔØequals. 1. ÀàµÄʵÀýÖ»ÓÐͬһ¸ö²Å±»ÅÐΪÏàµÈ. ÈçThreadÀà. 2. ²»ÓùØÐÄÁ½¸ö¶ÔÏóÊÇ·ñÂß¼ÏàµÈµÄʱºò,»òÊÇ˵±È½Ï¶ÔÏóûÓÐÒâÒå. 3.¸¸ÀàÒѾÖØÔØÁËequals,¶øÇÒ¸¸ÀàµÄequalsÒ²ÊÊÓÃÓÚ×ÓÀà,×ÓÀà¾Í²»ÓÃÖØÔØequals. 4.ÕâÊÇÒ»¸ö˽ÓÐÀà»òÊ ......
ÎÒ½ñÌìѧϰÁËstrutsµÄһЩÌØÓеŦÄÜ£º
strutsµÄͬ²½ÁîÅÆ»úÖÆ£ºÔÚstrutsÖпØÖÆ±íµ¥µÄÖظ´Ìá½»
ÔÚActionµÄ·½·¨ÀïÃ棺
this.saveToken(request);
boolean flag=this.isTokenValid(request);
if(flag){
//Ó¦¸Ã´ÓsessionÖ ......