var row = [{ "code": "1", "model": "APOLLO" }, { "code": "2", "model": "APOLLO M/B1"}];
for (var i = 0; i < row.length; i++) {
  var addOption = document.createElement("option");
  addOption.text = row[i]["model"];
  addOption.value = row[i]["model"];
  document.getElementById("ddlModel").add(addOption);
}
<asp:DropDownList ID="ddlModel" name="ddlModel" runat="server" Font-Size="9pt" Width="105px"
  CssClass="DropDownList">
</asp:DropDownList>

js给DropdownList赋值

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2021-06-25
猜你喜欢
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2021-07-18
  • 2022-12-23
相关资源
相似解决方案