vue select Bind

 

            <select v-model="selected">
                <option disabled value="">请选择</option>
                <option>1</option>
                <option>2</option>
                <option>3</option>
            </select>

data:{

  selected:1  

}
If the option is not set content comparison value and option value selected in the decision to select that
if there is value worth if selected values for comparison with the value of that decision is selected

Reproduced in: https: //www.cnblogs.com/hzx-5/p/vue_select.html

Guess you like

Origin blog.csdn.net/weixin_33826268/article/details/93624590