ËÄܸøÎÒ½²Ò»ÏÂÔÚjavascriptÖÐidºÍnameÓÐʲôÑùÇø±ð£¿Ò»¸öÒ³ÃæÖÐ id×îºÃÖ»ÓÐÒ»¸ö ÒòΪ javascript ÓÐ getElementById("id")Ö®ÀຯÊý name ¿ÉÒÔÓжà¸ö ³£ÓÃÔÚÌá½»ÇëÇóÊ·þÎñÆ÷¶Ë»ñÈ¡
Ò»¸öÔªËØÖÐ×îºÃÉèÖà id Óë name Ãû×ÖÏàͬ
idÖظ´ÁË£¬ºÃÏñÕû¸öjavascript´úÂ붼ûÓÐ×÷ÓÃÁË ¶ÔÓÚ id Óà document.getElementById("nodeId"),ÇÒ id ²»ÄÜÖظ´£¬·µ»ØÒ»¸öΨһµÄÔªËØ£¬¶ø¶ÔÓÚ name ¿ÉÓà document.getElementsByName("sNodeName"), ·µ»ØÒ»¸öÔªËØÊý×é(¾ßÓÐÏàͬÃû×ÖµÄËùÓнڵã)£» ¹ËÃû˼Òå°É£º