Score
0
Watch 253 Star 472 Fork 257

稻米 / LigerUIJavaScript

无法执行通过data-click绑定的事件

Open
Fong  Opened this issue

比如页面中有如下代码:

<div class="liger-button" data-click="f_validate" data-width="150">验证</div> 
<script>        
        function f_validate() {
            var form = liger.get('form1');
            if (form.valid()) {
                alert('验证通过');
            }
            else {
                form.showInvalid();
            }
        } 

</script>

=======================
当点击“验证”按钮时f_validate函数不执行。
浏览器报:ligerui.all.js:1828 Uncaught TypeError: p.click is not a function

total 1 participants

Comments (0)

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
JavaScript
1
https://gitee.com/ligerui/LigerUI.git
git@gitee.com:ligerui/LigerUI.git
ligerui
LigerUI
LigerUI

Search

231008 48f1a665 1899542 231017 9a6720c6 1899542