我试图在vue.js中获取select区域的值,但我得到一个空值。
alert(this.property_credentials.district);
任何建议如何从select中获取价值?
<select v-model="property_credentials.district" name="district" class="country selectpicker" id="selectCountry" data-size="10" data-show-subtext="true" data-live-search="true">
<option value="0">--Please select your district</option>
<optgroup v-for='district in districts' label="@{{district.district}}">
<option v-for='region in district.regions' value="@{{region}}" >@{{region}}</option>
</optgroup>
</select>