上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2015-07-07 12:00 程序猿凯 阅读(376) 评论(0) 推荐(0) 编辑
摘要: <script> function dclick() { form1.text.value = "您双击了页面!"; } function Click() { form1.text.value += "您单击了页面"; } function down() { form1.text.value = " 阅读全文
posted @ 2015-07-06 16:07 程序猿凯 阅读(412) 评论(0) 推荐(0) 编辑
摘要: <script> function mymethod(str) { alert("您输入的是:"+str); } </script><form action="" method="get"><!-- 调用mymethod()函数this.value取得当前对象的值做参数 --><input type 阅读全文
posted @ 2015-07-06 15:18 程序猿凯 阅读(321) 评论(0) 推荐(0) 编辑
摘要: <body> <form action="" id="form1" name="form1" method="post"> <label>姓名: <input type="text" name="textfield" /> </label> <p> <label>密码: <input type="p 阅读全文
posted @ 2015-07-06 14:29 程序猿凯 阅读(249) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript">window.document.write("这个网页文件来自:".bold());window.document.write(window.location.toString());</script> 阅读全文
posted @ 2015-07-06 13:32 程序猿凯 阅读(228) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> function Card(name, address, phone) { this.name = name; //初始化名片信息 this.address = address; this.phone = phone; this.pri 阅读全文
posted @ 2015-07-06 11:10 程序猿凯 阅读(378) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript">var years = new Array(1985,1970,1999,1998,2000,1963);document.write("排序前的各年份:<li>" + years+"</li>");function sortFunc( 阅读全文
posted @ 2015-07-03 16:40 程序猿凯 阅读(338) 评论(1) 推荐(0) 编辑
摘要: <script>var queue = new Array(); //购票队列function client(name) //顾客对象{ this.name = name; //顾客名字 this.ticket = NaN; //票号}queue.push(new client("Lily"),ne 阅读全文
posted @ 2015-07-02 09:25 程序猿凯 阅读(338) 评论(0) 推荐(0) 编辑
摘要: <script>function sum(arg1,arg2) //加法函数{ var realArgCount = arguments.length; //调用函数时传递的实参个数 var frmArgCount = sum.length; //函数定义时的形参个数 if(realArgCount 阅读全文
posted @ 2015-06-25 15:57 程序猿凯 阅读(310) 评论(1) 推荐(0) 编辑
摘要: <script>function SortNumber(obj,func) //定义通用排序函数{ //参数验证,如果第一个参数不是数组或第二个参数不是函数则抛出异常 if(!(obj instanceof Array) || !(func instanceof Function)) { var e 阅读全文
posted @ 2015-06-25 14:57 程序猿凯 阅读(935) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页