问题描述
<%Map<String,String>mapOne=newHashMap<String,String>();mapOne.put("A","A");mapOne.put("B","B");%><scripttype="text/javascript">varzhen1=newArray("11","12");varzhen2=newArray("22","21");functionspecieSelChange(selBox){varstr="<select>";if(selBox.value=="A"){for(vari=0;i<zhen1.length;i++){str+="<option>"+zhen1[i]+"</option>";}}elseif(selBox.value=="B"){for(vari=0;i<zhen2.length;i++){str+="<option>"+zhen2[i]+"</option>";}}}str+="</select>";document.all('Linkage').innerHTML=str;}</script><tr><td>二级联动下拉框:</td><tdid="Linkage">怎么把二级联动的内容放到selectoption里,然后在另外一个页面里获取值
解决方案
解决方案二:
高手们帮帮忙
时间: 2024-09-20 08:36:00