jQuery is just wrapping the standard resize
DOM event, eg.(jQuery只是包装了标准的resize
DOM事件,例如。)
window.onresize = function(event) {
...
};
jQuery may do some work to ensure that the resize event gets fired consistently in all browsers, but I'm not sure if any of the browsers differ, but I'd encourage you to test in Firefox, Safari, and IE.(jQuery 可以做一些工作来确保在所有浏览器中一致地触发resize事件,但是我不确定任何浏览器是否有所不同,但是我鼓励您在Firefox,Safari和IE中进行测试。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…