摘要: <input class="Noprn" type="button" onclick="window.print()" value="打印"/> <input type="button" name="print" value="预览并打印" onclick="preview()"/> <input type="button" id="bt" onclick=" 阅读全文
posted @ 2011-12-28 16:25 易尔购 阅读(253) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function() { $(window).bind("scroll", GetData); function GetData() { var windowHeight = $(window).height(); var scrollHeight = $(document).scrollTop(); var screenBottom = windowHeight + scrollHeight; var documentHeight = $(document).height(); if (screenBottom >= docume 阅读全文
posted @ 2011-12-28 14:06 易尔购 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 1.this和event.target的区别:js中事件是会冒泡的,所以this是可以变化的,但event.target不会变化,它永远是直接接受事件的目标DOM元素;2.this和event.target都是dom对象,如果要使用jquey中的方法可以将他们转换为jquery对象:$(this)和$(event.target);比如:event.target和$(event.target)的使用:< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or 阅读全文
posted @ 2011-12-28 11:18 易尔购 阅读(51024) 评论(2) 推荐(2) 编辑