在项目中用到layui实现第几个option 实现,在select中渲染出需要展示的option

代码:

$("#period option[value="+res.data.section+"]").prop("selected",true);
layui动态选中select的值

 

相关文章:

  • 2021-04-19
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-30
相关资源
相似解决方案