小编Kar*_*bit的帖子

Jquery StopPropagation无法在Firefox中运行

我有这个代码在Safari和Chrome上运行,但在Firefox中没有.Firefox是否遇到StopPropagation()问题?

$(function() {
    // Setup drop down menu
    $('.dropdown-toggle').dropdown();

    // Fix input element click problem
    $('.login-menu form').click(function(e) {
        alert(e.isPropagationStopped());
        e.stopPropagation();
        alert(e.isPropagationStopped());
    });
});?
Run Code Online (Sandbox Code Playgroud)

firefox jquery dom stoppropagation twitter-bootstrap

3
推荐指数
2
解决办法
2万
查看次数