小编Joh*_*own的帖子

jQuery函数.bind在IE中不起作用

这是我的网站

如果单击小缩略图,则会显示较大的图像.在Chrome中,它可以很好地工作,但是当我在IE9中尝试它时,它什么也没做.这是我的代码:

jQuery的

// JavaScript Document

//Button1
;(function($) {

         // DOM Ready
        $(function() {

            // Binding a click event
            // From jQuery v.1.7.0 use .on() instead of .bind()
            $('#my-button').bind('click', function(e) {

                // Prevents the default action to be triggered. 
                e.preventDefault();

                // Triggering bPopup when click event is fired
               $('#element_to_pop_up').bPopup({
                    appendTo: 'form'
                    , zIndex: 2
                    , modalClose: false
                });
            });
         });
     })(jQuery);
//Button2



     ;(function($) {

         // DOM Ready
        $(function() {

            // Binding a click event
            // From jQuery v.1.7.0 use .on() …
Run Code Online (Sandbox Code Playgroud)

html jquery jquery-ui bpopup

4
推荐指数
1
解决办法
5777
查看次数

标签 统计

bpopup ×1

html ×1

jquery ×1

jquery-ui ×1