double click using IE

后端 未结 2 710
走了就别回头了
走了就别回头了 2020-12-21 08:30

I have discovered a double-click problem in IE.

The following is my HTML:

Hello World!

And my jQ

2条回答
  •  温柔的废话
    2020-12-21 08:57

    Here's a fiddle. jQuery's dblclick works for me on both FF and IE9. Tested: "the event is fired only when the double click STARTS and ENDS inside the DIV"

    $("#test").dblclick(function(event) {
      event.stopPropagation();
      $(this).css({'background-color': 'red'});
    });
    

提交回复
热议问题