ajax获取到的数据怎么放入下拉框
<td>产品类型:</td>
<td align="left">
<input id="cplx" name="cplx" class="mini-combobox" style="width:99%;height:30px"
onvaluechanged="onDeptChanged"
url="${basePath}/platform/basecode/getviewlist.do?viewname=v_bhzcplxtype"/>
</td>
</tr>
<tr>
<td>产品型号:</td>
<td align="left">
<select id="cpxh" name="cpxh" class="mini-combobox" style="width:99%;height:30px"></select>
</td>
这是jsp页面
function onDeptChanged() {
var id = mini.get("cplx").getValue();
var cpxh=mini.get("cpxh");
cpxh.setValue("");
var url = basePath+"/mechanicalequipment/mixingplantmgr/getcpxh.do?";
MU.RS({url:url,params:{id:id},callback:function(result){
for (var i = 0; i < result.length; i++) {
$("#cpxh").append("<option value='"+result[i].cpxh+"'>" + result[i].cpxh + "</option>");
}
}});
这是js页面
[{cpxh=田中RAP3000型}, {cpxh=qqqq}, {cpxh=ww}]这是后台获取到的数据