随笔分类 -  JS

C#后台弹出对话框
摘要:Page.ClientScript.RegisterStartupScript(this.GetType(),"",""); 阅读全文
posted @ 2013-12-04 14:54 易尔购 阅读(598) 评论(0) 推荐(0)
多种打印方式
摘要:<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 易尔购 阅读(267) 评论(0) 推荐(0)
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 阅读全文
posted @ 2011-12-28 11:18 易尔购 阅读(51071) 评论(2) 推荐(2)
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 阅读全文
posted @ 2011-12-07 11:08 易尔购 阅读(9383) 评论(0) 推荐(0)