当我重新调整窗口大小时,为什么onResize会发射3次? [英] Why onResize fires 3 times when I re-size the window?

查看:53
本文介绍了当我重新调整窗口大小时,为什么onResize会发射3次?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么?

解决方案

df于18日在compilang.javascript 上写道:

为什么?




为什么不呢?


所有调整大小都可以一个长长的buziness。


-

Evertjan。

荷兰。

(请更改在我的电子邮件地址中的点'x''点数


不太了解。你介意告诉更多细节吗?


2006年5月17日15:01:07 -0700,df < DF **** @ msn.com>写道:

为什么onResize在重新调整窗口大小时会发射3次?




因为它会像你一样发射重新调整大小,而不仅仅是在

调整大小结束时,你为什么期望它只在最后开火?


Jim。


Why?

解决方案

df wrote on 18 mei 2006 in comp.lang.javascript:

Why?



Why not?

Afer all resizing can be a lenghty buziness.

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


Not understand very much.Would you mind telling more details?


On 17 May 2006 15:01:07 -0700, "df" <df****@msn.com> wrote:

Why onResize fires 3 times when I re-size the window?



because it fires as you''re resizing it, and not just at the end of the
resize, why would you expect it to only fire at the end?

Jim.


这篇关于当我重新调整窗口大小时,为什么onResize会发射3次?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆