随笔分类 - JS
多种打印方式
摘要:<input class="Noprn" type="button" onclick="window.print()" value="打印"/> <input type="button" name="print" value="预览并打印" onclick="preview()"/> <input type="button" id="bt" onclick="
阅读全文
jquery中使用event.target的几点
摘要: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
阅读全文
JS获取DropDownList的value值与text值
摘要:相关JS:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><scripttype="text/javascript"language="javascript">functionSearchChange(){varddl=document.getElementById("DropDownList1")varindex=ddl.selectedIndex;varValue=d
阅读全文
浙公网安备 33010602011771号