DropDownList?就是select吗?
用循环
a[]={0,1,2}
b[]={7,8,9}
for(i=0;i<3;i++){
document.select.options[i].value = a[i];
document.select.options[i].text= b[i];}
用循环
a[]={0,1,2}
b[]={7,8,9}
for(i=0;i<3;i++){
document.select.options[i].value = a[i];
document.select.options[i].text= b[i];}
for(var i=0; i<a.length; i++)
{
s.options[s.options.length] = new Option(a[i], a[i], true, true);
}