English 中文(简体)
IE8的QTip效率非常缓慢,使QTip达到1 000个要素。
原标题:QTip efficiency, putting a QTip on 1,000 elements is very slow in IE8
  • 时间:2012-01-12 16:56:19
  •  标签:
  • jquery
  • qtip2

我有一页,有数百个元素,需要盖图普再使用。 这正在杀害IE8,尽管其他浏览器似乎正在right。

为解决这一问题,我正试图在用户对集装箱进行摩擦时制造梯号,以便它每次只能达到100-200,而不是一千+。

$( #color-family /*ID of body*/> .strctr-contain /*containing class*/ ).live( mouseover , function(){
   $(this).children( .palette .color-swatch, .stain-swatch, .color-swatch-dash ).qtip({//foo}
})
 });

然而,当你冲入集装箱时,这一功能确实造成火灾,但是当你对孩子进行 mo弄时,它只是把这一功能 off倒,而不是展示工具。

最佳回答

或许最好使用“一个”功能,但对于你来说都是如此。

$( #color-family /ID of body/> .strctr-contain /containing class/ ).one( mouseover , function(){

     $(this).children( .palette .color-swatch, .stain-swatch, .color-swatch-dash ).qti({//foo} ); 

});
问题回答

这样做将消除一经处理即具约束力的变压。

$( #color-family /*ID of body*/> .strctr-contain /*containing class*/ ).on("mouseover", function(){
   $(this).children( .palette .color-swatch, .stain-swatch, .color-swatch-dash ).qtip({ //foo }).off("mouseover");
});

它只是需要添加的未整编(抵消)。

诚然,如果我们能够使用仅仅具有约束力的职能,我会第一次尝试在建立qtips之后采取一致行动:

(#color-family /ID of Body/> strctr-contain / 类别/ )。

$(this).children( .palette .color-swatch, .stain-swatch, .color-swatch-dash ).qtip({//foo} ); $(this).unbind( mouseover );

iii





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签