用JavaScript获取Asp.net服务器端控件CheckBoxList的选中值数组

通用版本(不依赖任何类库) <shapetype coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f" id="_x0000_t75"><stroke joinstyle="miter"></stroke><formulas><f eqn="if lineDrawn pixelLineWidth 0"></f><f eqn="sum @0 1 0"></f><f eqn="sum 0 0 @1"></f><f eqn="prod @2 1 2"></f><f eqn="prod @3 21600 pixelWidth"></f><f eqn="prod @3 21600 pixelHeight"></f><f eqn="sum @0 0 1"></f><f eqn="prod @6 1 2"></f><f eqn="prod @7 21600 pixelWidth"></f><f eqn="sum @8 21600 0"></f><f eqn="prod @7 21600 pixelHeight"></f><f eqn="sum @10 21600 0"></f></formulas><path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></path><lock v:ext="edit" aspectratio="t"></lock></shapetype><shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1025"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image001.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif"></imagedata></shape> function GetCheckBoxListValue(objID) <shape o:spid="_x0000_i1026" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_51_898_Open_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image002.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif"></imagedata></shape><shape o:spid="_x0000_i1027" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_51_898_Closed_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image003.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif"></imagedata></shape> ... { <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1028"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>varv=newArray(); <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1029"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>varCheckBoxList=document.getElementById(objID); <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1030"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>if(CheckBoxList.tagName=="TABLE") <shape o:spid="_x0000_i1031" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_177_515_Open_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image005.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif"></imagedata></shape><shape o:spid="_x0000_i1032" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_177_515_Closed_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image006.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif"></imagedata></shape>...{ <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1033"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>for(i=0;i<CheckBoxList.rows.length;i++) <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1034"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>for(j=0;j<CheckBoxList.rows[i].cells.length;j++) <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1035"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>if(CheckBoxList.rows[i].cells[j].childNodes[0]) <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1036"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>if(CheckBoxList.rows[i].cells[j].childNodes[0].checked==true) <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1037"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>v.push(CheckBoxList.rows[i].cells[j].childNodes[1].innerText); <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1038"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image007.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif"></imagedata></shape>} <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1039"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>if(CheckBoxList.tagName=="SPAN") <shape o:spid="_x0000_i1040" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_560_882_Open_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image005.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif"></imagedata></shape><shape o:spid="_x0000_i1041" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_560_882_Closed_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image006.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif"></imagedata></shape>...{ <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1042"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>for(i=0;i<CheckBoxList.childNodes.length;i++) <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1043"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>if(CheckBoxList.childNodes[i].tagName=="INPUT") <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1044"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>if(CheckBoxList.childNodes[i].checked==true) <shape o:spid="_x0000_i1045" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_755_864_Open_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image005.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif"></imagedata></shape><shape o:spid="_x0000_i1046" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_755_864_Closed_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image006.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif"></imagedata></shape>...{ <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1047"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>i++; <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1048"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>v.push(CheckBoxList.childNodes[i].innerText); <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1049"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image007.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif"></imagedata></shape>} <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1050"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image007.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif"></imagedata></shape>} <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1051"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>returnv; <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1052"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image008.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif"></imagedata></shape>} <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1053"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image001.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif"></imagedata></shape> Asp.netAjax 版本(依赖 Asp.netAjax 类库支持) <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1054"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image001.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif"></imagedata></shape><shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1055"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image001.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif"></imagedata></shape> function GetCheckBoxListValue(objID) <shape o:spid="_x0000_i1056" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_974_1827_Open_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image002.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif"></imagedata></shape><shape o:spid="_x0000_i1057" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_974_1827_Closed_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image003.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif"></imagedata></shape> ... { <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1058"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>varv=newArray(); <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1059"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>varCheckBoxList=$get(objID); <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1060"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>if(CheckBoxList.tagName=="TABLE") <shape o:spid="_x0000_i1061" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_1081_1439_Open_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image005.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif"></imagedata></shape><shape o:spid="_x0000_i1062" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_1081_1439_Closed_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image006.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif"></imagedata></shape>...{ <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1063"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>for(i=0;i<CheckBoxList.rows.length;i++) <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1064"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>for(j=0;j<CheckBoxList.rows[i].cells.length;j++) <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1065"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>if(CheckBoxList.rows[i].cells[j].childNodes[0]) <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1066"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>if(CheckBoxList.rows[i].cells[j].childNodes[0].checked==true) <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1067"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>Array.add(v,CheckBoxList.rows[i].cells[j].childNodes[1].innerText); <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1068"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image007.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif"></imagedata></shape>} <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1069"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>if(CheckBoxList.tagName=="SPAN") <shape o:spid="_x0000_i1070" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_1484_1811_Open_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image005.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif"></imagedata></shape><shape o:spid="_x0000_i1071" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_1484_1811_Closed_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image006.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif"></imagedata></shape>...{ <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1072"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>for(i=0;i<CheckBoxList.childNodes.length;i++) <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1073"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>if(CheckBoxList.childNodes[i].tagName=="INPUT") <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1074"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>if(CheckBoxList.childNodes[i].checked==true) <shape o:spid="_x0000_i1075" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_1679_1793_Open_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image005.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif"></imagedata></shape><shape o:spid="_x0000_i1076" type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_1679_1793_Closed_Image"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image006.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif"></imagedata></shape>...{ <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1077"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>i++; <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1078"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>Array.add(v,CheckBoxList.childNodes[i].innerText); <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1079"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image007.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif"></imagedata></shape>} <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1080"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image007.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif"></imagedata></shape>} <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1081"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif"></imagedata></shape>returnv; <shape type="#_x0000_t75" alt="" style="width: 8.25pt; height: 12pt;" id="_x0000_i1082"><imagedata src="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image008.gif" o:href="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif"></imagedata></shape>}

你可能感兴趣的:(JavaScript)