English 中文(简体)
翻新(功能)(});和(窗口)(功能(功能){});混淆
原标题:$(doucment).ready(function(){}); and $(window).load(function() {}); confusion

http://www.marioplanet.com/product.htm http://www.marioplanet.com/product.htm。 有一些奇怪的行为,我可以真正利用一些帮助开展工作。

现在,我曾对我的形象感到厌恶,有人在座帮助我说,我应该把形象化为乌有。

$(window).load(function(){});

为了使图像在消毒发生之前能够装载,因此,转售不会发现一种错误的宽度和高度,因为它的装上了,而不是将其放在文件准备的功能中。

现在我已经这样做了,我不禁要问,我应该做些什么,在我的文件准备功能中打上nes子,因为它是虚伪的 j子,它似乎运转不错。

如果我从准备到窗户装货功能的文件中搬出ancy箱,那就没有发挥作用!

我可以在这里真正利用一些帮助,因此,任何信息或建议都受到高度赞赏!

感谢!

<><>UPDATE:

就像一个旁观一样,要说明如何使图像不全负荷,而只是当变式效应适用于图像时,就装上了,因此,图像没有大面显示,然后又不停地缩小。

问题回答

$ (document)ready (...); is for when DOMContentLoaded. 之所以出现这种情况,是因为OMD完全创建,但在图像和其他外在器被最终下载之前。 发生这种情况后,<代码>即启动,可通过<代码>$(window)load(......);加以聆听。 请don t use jQuery,仅作简单易举!





相关问题
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: &...

热门标签