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

JSTL ʹÓà c:forEach

ÔÚ Web Ó¦ÓóÌÐò»·¾³ÖУ¬µü´úÖ÷ÒªÓÃÓڷôæºÍÏÔʾÊý¾Ý¼¯£¬Í¨³£ÊÇÒÔÁбí»ò±íÖеÄһϵÁÐÐеÄÐÎʽÏÔʾ¡£ÊµÏÖµü´úÄÚÈݵÄÖ÷Òª JSTL ²Ù×÷ÊÇ <c:forEach>; ¶¨ÖƱê¼Ç¡£¸Ã±ê¼ÇÖ§³ÖÁ½ÖÖ²»Í¬ÑùʽµÄµü´ú£ºÕûÊý·¶Î§Éϵĵü´ú£¨ÀàËÆ Java ÓïÑ﵀ for Óï¾ä£©ºÍ¼¯ºÏÉϵĵü´ú£¨ÀàËÆ Java ÓïÑ﵀ Iterator ºÍ Enumeration Àࣩ¡£
½øÐÐÕûÊý·¶Î§µü´úÓõ½ÁËÇåµ¥ 1 ÖÐËùʾµÄ <c:forEach>; ±ê¼ÇµÄÓï·¨¡£begin ºÍ end ÊôÐÔҪôÊǾ²Ì¬ÕûÊýÖµ£¬ÒªÃ´ÊÇ¿ÉÒԵóöÕûÊýÖµµÄ±í´ïʽ¡£ËüÃÇ·Ö±ðÖ¸¶¨µü´úË÷ÒýµÄ³õʼֵÒÔ¼°µü´úË÷ÒýµÄÖÕÖ¹Öµ¡£µ±Ê¹Óà <c:forEach>; ÔÚÕûÊý·¶Î§ÄÚ½øÐеü´úʱ£¬ÕâÁ½¸öÊôÐÔÊDZØÐèµÄ£¬¶øÆäËüËùÓÐÊôÐÔ¶¼ÊÇ¿ÉÑ¡µÄ¡£
Çåµ¥ 1. ͨ¹ý <c:forEach>; ²Ù×÷½øÐÐÊý×Öµü´úµÄÓï·¨
<c:forEach var="name" varStatus="name"
     begin="expression" end="expression" step="expression">;
   body content
</c:forEach>;
µ±³öÏÖ step ʱ£¬ËüÒ²±ØÐëÊÇÕûÊýÖµ¡£ËüÖ¸¶¨Ã¿´Îµü´úºóË÷ÒýµÄÔöÁ¿¡£ÕâÑù£¬µü´úË÷Òý´Ó begin ÊôÐÔµÄÖµ¿ªÊ¼£¬ÒÔ step ÊôÐÔµÄֵΪÔöÁ¿½øÐеÝÔö£¬ÔÚµü´úË÷Òý³¬¹ý end ÊôÐÔµÄֵʱֹͣµü´ú¡£×¢£ºÈç¹ûÊ¡ÂÔÁË step ÊôÐÔ£¬ÄÇô²½³¤È±Ê¡Îª 1¡£
Èç¹ûÖ¸¶¨ÁË var ÊôÐÔ£¬ÄÇô½«»á´´½¨Ò»¸ö´øÓÐÖ¸¶¨Ãû³ÆµÄ²¢ÏÞ¶¨ÁË×÷ÓÃÓòµÄ±äÁ¿£¬²¢½«Ã¿´Îµü´úµÄµ±Ç°Ë÷ÒýÖµ¸³¸ø¸Ã±äÁ¿¡£ÕâÒ»ÏÞ¶¨ÁË×÷ÓÃÓòµÄ±äÁ¿¾ßÓÐǶÌ×ʽ¿ÉÊÓÐÔ — Ö»¿ÉÒÔÔÚ <c:forEach>; ±ê¼ÇÌåÄÚ¶ÔÆä½øÐзÃÎÊ¡££¨ÎÒÃǺܿ콫ÌÖÂÛ¿ÉÑ¡ÊôÐÔ varStatus µÄÓ÷¨¡££©Çåµ¥ 2 ÏÔʾÁ˶ÔÒ»×é¹Ì¶¨ÕûÊýÖµ½øÐеü´úµÄ <c:forEach>; ²Ù×÷ʾÀý¡£
Çåµ¥ 2. ʹÓà <c:forEach>; ±ê¼ÇÀ´Éú³É±íÁÐÊý¾Ý£¬ÕâЩÊý¾Ý¶ÔÓ¦ÓÚijһ·¶Î§ÄÚµÄÊýÖµ¡£
<table>;
<tr>;<th>;Value</th>;
     <th>;Square</th>;</tr>;
<c:forEach var="x" begin="0" end="10" step="2">;
   <tr>;<td>;<c:out value="${x}"/>;</td>;
       <td>;<c:out value="${x * x}"/>;</td>;</tr>;
</c:forEach>;
</table>;
Èçͼ 3 ÖÐËùʾ£¬ÉÏÃæµÄʾÀý´úÂëÉú³ÉÁËÒ»ÕÅ±í£¬ÏÔʾǰÎå¸öżÊý¼°Æäƽ·½¡£ÕâÊÇͨ¹ý½« begin ºÍ step ÊôÐÔÖµÖ¸¶¨Îª 2£¬¶ø½« end ÊôÐÔÖµÖ¸¶¨Îª 10 ʵÏֵġ£´ËÍ⣬Óà var ÊôÐÔ´´½¨ÓÃÓÚ´


Ïà¹ØÎĵµ£º

ÒÀÈ»CÄÚ´æ

Ò». ÔÚcÖзÖΪÕ⼸¸ö´æ´¢Çø
1.Õ» - ÓɱàÒëÆ÷×Ô¶¯·ÖÅäÊÍ·Å
2.¶Ñ - Ò»°ãÓɳÌÐòÔ±·ÖÅäÊÍ·Å£¬Èô³ÌÐòÔ±²»ÊÍ·Å£¬³ÌÐò½áÊøʱ¿ÉÄÜÓÉOS»ØÊÕ
3.È«¾ÖÇø£¨¾²Ì¬Çø£©£¬È«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿µÄ´æ´¢ÊÇ·ÅÔÚÒ»¿éµÄ£¬³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿ÔÚÒ»¿éÇøÓò£¬Î´³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍδ³õʼ»¯µÄ¾²Ì¬±äÁ¿ÔÚÏàÁÚµÄÁíÒ»¿éÇøÓò¡£- ³ÌÐò½áÊøÊÍ·Å
4.ÁíÍ ......

Linux Ï CÓïÑÔ´óÎļþ¶Áд(´óÓÚ4G£©

ÒÔϵÄ×ö·¨ÕûÀí×ÔÂÛ̳ÉϵÄÌû×Ó¡£ 
ÈçºÎcreate´óÎļþ
Òª´ó¾Í·Ç³£´ó£¬1T°É¡£
ÓÐÁ½ÖÖ·½·¨£º
 
Ò».dd
dd if=/dev/zero of=1T.img bs=1G seek=1024 count=0
bs=1G±íʾÿһ´Î¶Áд1GÊý¾Ý£¬count=0±íʾ¶Áд0´Î£¬seek=1024±íʾÂÔ¹ý1024¸öBlock²»Ð´£¬Ç°Ãæblock sizeÊÇ1G£¬ËùÒÔ¹²ÂÔ¹ý1T£¡
ÕâÊÇ´´½¨´óÐÍsparseÎļþ×î¼ ......

ÈçºÎÔÚLinuxʹÓÃEclipse + CDT¿ª·¢C/C++³ÌÐò?

A. ΪʲôҪÔÚLinuxʹÓÃEclipse¿ª·¢C/C++³ÌÐò?
LinuxÊÇÒ»¸öÒÔC/C++¿ª·¢ÎªÖ÷µÄƽ̨£¬ÎÞÂÛÊÇKernel»òÊÇApplication£¬Ö÷Òª¶¼Ê¹ÓÃC/C++¿ª·¢¡£´«Í³ÔÚLinuxÏ¿ª·¢³ÌÐò£¬ÊÇÔÚÎÄ×ÖģʽÏ£¬ÀûÓÃviµÈÎÄ×ֱ༭Æ÷׫дC/C++³ÌÐò´æÅ̺ó£¬ÔÚCommand lineÏÂʹÓÃgcc±àÒ룬ÈôÒªdebug£¬ÔòʹÓÃgdb¡£
ÕâÖÖ¿ª·¢·½Ê½Éú²úÁ¦²¢²»¸ß£¬ÈôÖ»ÊÇ¿ª·¢Ñ§ ......

¶íÂÞ˹·½¿écÔ´´úÂë

££i nclude <stdio.h>
££i nclude <dos.h>
££i nclude <conio.h>
££i nclude <graphics.h>
££i nclude <stdlib.h>
#ifdef __cplusplus 
#define __CPPARGS ...
#else
#define __CPPARGS
#endif
#define MINBOXSIZE  ......

20100527 CÏÝÚåÓëȱÏݶÁÊé±Ê¼Ç£¨Ò»¡¢¶þÕ£©

  µÚÒ»Õ£º´Ê·¨“ÏÝÚå”
  ×Öĸ±¾ÉíûÓÐÒâ˼£¬µ«Êǽ«×Öĸ×é³ÉµÄµ¥´Ê¾Í±»¸³ÓèÁËÒâÒå¡£ÔÚCÓïÑÔÖУ¬×Ö·û×éºÏ³ÉÁËÕû¸ö´úÂ룬ÓÉ×Ö·ûÊéд´øÀ´µÄ±ÊÎó»á´øÀ´²»ÉÙÂé·³¡£×÷Ϊ³ÌÐòÔ±£¬²»ÄÜÖ¸Íû¿¿±àÒëÆ÷À´ÌáÐÑ¡£Òò´Ë£¬ÐèҪעÒ⣺
  1.CÓïÑÔÖУ¬·ûºÅÖ®¼äµÄ¿Õ°×£¨°üÀ¨¿Õ¸ñ·û£¬ÖƱí·û£¬»»Ðзû£© ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ