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

data:{

  selected:1  

}
如果option 没有设置value值 selected与option里的内容对比 决定选中那个
如果有value值得话 selected 与 value值作对比 决定选中那个

相关文章:

  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-10-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案