html 是这样的

angular 中获取select选中的值

 

<select name="" >{{province.area_name}}</option>
</select>

(change)="getCity($event.target.value);    
改变事件 getCity方法 将选中的值传到后面 js中 或是后台

[value]="province.area_id"
在option 中循环到你数据要传的id

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2021-11-17
  • 2021-11-21
  • 2021-08-22
  • 2021-12-23
相关资源
相似解决方案