使用layui的form.on绑定select选中事件中, form.on()不执行, 主要原因有

1, select标签中没有写lay_filter属性,用来监听

<select id="watch" lay-filter="watch"class="layui-input layui-unselect" >
        <option>--请选择--</option>
</select>

2, form.on必须写在layui.use(){}中, 这个一般不会错

3, 检查html中是否有<form></form>标签, 并且标签中有 class="layui-form"

<form class="layui-form">

</from>

 

相关文章:

  • 2021-08-09
  • 2022-12-23
  • 2021-05-03
  • 2021-08-02
  • 2021-04-28
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-20
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-09-21
相关资源
相似解决方案