日期:2014-05-17  浏览次数:20455 次

怎么把一个集合的值赋给select 的option?
怎么把一个集合的值赋给select 的option?
怎么把一个集合的值赋给select 的option?
希望能得到一点代码解释···

------解决方案--------------------
参考
------解决方案--------------------
<select id='sl'></select>

js:
var opstr=""//这里遍历集合,把值付给option,拼成字符串
document.getElementById('sl').innerHTML()=opstr;
jquery更好做一些:$("#sl").append(opstr);

后台的话就是sl.Item.add()吧,大概就是这样了,具体的vs里可点出来的