zoukankan      html  css  js  c++  java
  • layui form.on('select(xxx)',function(){});绑定失败

    使用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>
  • 相关阅读:
    10月27号
    10月23号
    10月26号
    10月30号
    10月28号
    10月29号
    JAVA日报
    JAVA日报
    JAVA日报
    JAVA日报
  • 原文地址:https://www.cnblogs.com/gczmn/p/9711673.html
Copyright © 2011-2022 走看看