jQuery API | 返回首页目录 | jQuery API 中英文对照版 |
resize(fn) |
resize(fn)
在每一个匹配元素的resize事件中绑定一个处理函数。 返回值:jQuery 参数:
示例: $("p").resize( function() { alert("Hello"); } ); HTML 代码: <p>Hello</p> 结果: <p onresize="alert('Hello');">Hello</p> Bind a function to the resize event of each matched element. Return value: jQuery
Example: $("p").resize( function() { alert("Hello"); } );Before: <p>Hello</p>Result: <p onresize="alert('Hello');">Hello</p> |