jquery的resize()方法使用javascript
<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>html
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript">
var i = 0;
$(document).ready(function(){
$(window).resize(function() {
i++;java
var Width = document.documentElement.clientWidth;jquery
var Height = document.documentElement.clientHeight;
alert(i);
});測試
});
</script>
</head>
</html>htm
測試地址:ip
http://www.w3school.com.cn/tiy/t.asp?f=jquery_event_resizeio