English 中文(简体)
鸡奸
原标题:Triggering domready by force in jQuery?

由于将javascript DOM方法放在html页底部(带;人与人)远比利用“金”准备活动要快得多,因此我们不得不这样做:

$( document ).trigger( ready );

......在 body后? 我真心想这样做,但应该加快步伐。 还是我错了什么?

最佳回答

j Query.ready();

问题回答

<代码>ready > 活动是指文件现已平分,可加以操纵。 当浏览器填满时,就会出现这种情况,而且你可以很快做到这一点。

你们如何看待这样的事情? 它是否在浏览器的超声望平线上lip开了魔mag的开关,使其运行速度比通常快? 这是否使计算机处理员能够更快地操作,因此浏览器会更快地完成对文件的修正?

你们可以迫使浏览者比任何途径更快地放下文件。 甚至连 j都没有;-

我有一个密切相关的问题,在诉诸于SO之前,我终于找到了答案。 既然我有问题的人会在这里拥有土地(“科索沃部队文件已经准备好”,就只能给我一些额外的信息。

我的问题是,我正在动态地产生一些超文本(使用XSLT),有时会在今后节省下来,但有时我只想打开一个新窗口,使用新的超文本,以便用户能够加以审查。 与此类似:

var html = UseXSLTToGenerateSomeHTML();
var myWindow = window.open(  ,   ,  width=805,height=493 );
myWindow.document.write(html);
myWindow.focus();

问题在于,产生的超文本使用 j子,而鸡奸事件从未被援引。 我从戴维的答复中可以立即看出这一点,但塔韦克目前暂时逃脱。 它是:

var html = UseXSLTToGenerateSomeHTML();
var myWindow = window.open(  ,   ,  width=805,height=493 );
myWindow.document.write(html);
myWindow.focus();
mywindow.jQuery.ready();

请注意,在这种情况下,只使用生成的超文本。 不管怎么说,你正在就另一份文件开展 j活动。





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

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签