var friend = $("#friend");
friends.empty();
for(var i=0;i<data.length;i++) {
    var option = $("<option>").text(data.name).val(data.value)
    friends.append(option);
}

相关文章:

  • 2021-12-04
  • 2021-12-20
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2021-08-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案