select 多次选择option 多个option selected解决方案

问题如图所示:动态渲染后对select 中的option 多次进行选择,option selected多个这会导致显示出错 解决方案: 每次动态渲染时清空  option selected属性 $(".four-select option").removeAttr("selected"); .four-select 为所选择的元素
相关文章
相关标签/搜索