html 是这样的
<select name="" >{{province.area_name}}</option>
</select>
(change)="getCity($event.target.value);
改变事件 getCity方法 将选中的值传到后面 js中 或是后台
[value]="province.area_id"
在option 中循环到你数据要传的id
html 是这样的
<select name="" >{{province.area_name}}</option>
</select>
(change)="getCity($event.target.value);
改变事件 getCity方法 将选中的值传到后面 js中 或是后台
[value]="province.area_id"
在option 中循环到你数据要传的id
相关文章: