白开水

海阔凭鱼跃,天高任鸟飞!

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年3月5日

摘要: <!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.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2012-03-05 11:12 baikaishui1989 阅读(265) 评论(0) 推荐(0) 编辑

2012年2月27日

摘要: 阅读全文
posted @ 2012-02-27 15:19 baikaishui1989 阅读(270) 评论(0) 推荐(0) 编辑

2012年2月17日

摘要: <!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.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2012-02-17 15:43 baikaishui1989 阅读(320) 评论(2) 推荐(0) 编辑

2012年2月16日

摘要: <ul><li onmousemove="xianshi('wang')" onmouseout="yincang('wang')"><a href="#">鼠标扑捉</a><ul><li id="wang" style=" width:200px; height:200px; background:#CCC;"> <a href="#">显示与隐藏</a 阅读全文
posted @ 2012-02-16 10:43 baikaishui1989 阅读(350) 评论(0) 推荐(0) 编辑

2012年2月8日

摘要: <!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.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2012-02-08 16:41 baikaishui1989 阅读(305) 评论(0) 推荐(0) 编辑

摘要: <script type="text/javascript">/*//继承的第一种方式:对象冒充function parent(username){ this.username=username; this.sayhello=function(){ alert(this.username) } }function child(username,password){ //下面三行代码最关键 this.method=parent; this.method(username); this.password=password; this.sayword=function 阅读全文
posted @ 2012-02-08 11:50 baikaishui1989 阅读(214) 评论(0) 推荐(0) 编辑

2012年2月7日

摘要: <script type="text/javascript">//可以在构造对象时传递参数/*function geobject(){ //在执行第一行代码之前,js引擎会为我们生成一个对象 this.username="zhangsan"; this.passworld="123"; this.getobject=function(){ alert(this.username+this.passworld); } //此处有一个隐藏的return,用于将之前生成的对象返回 } var object=new geobjec 阅读全文
posted @ 2012-02-07 16:31 baikaishui1989 阅读(318) 评论(0) 推荐(0) 编辑

摘要: <script type="text/javascript">function compare(num1,num2){ var temp1=parseInt(num1); var temp2=parseInt(num2); //alert(temp1) if(temp1>temp2){ return 1; } else{ return 1; } }//var array=[1,3,25];//var x=array.sort(compare);//函数名是对象的引用//alert(array);</script><script type= 阅读全文
posted @ 2012-02-07 15:06 baikaishui1989 阅读(244) 评论(0) 推荐(0) 编辑

摘要: <script type="text/javascript">var add=function(num1,num2,num3){ //alert(num1+num2+num3); } //alert(add.length); //alert(add(1,2,3));</script><script type="text/javascript">//Undefined未定义数据类型 值只有一个undefined//Null 数据类型的值只有一个:null//Boolean数据类型的值有两个:true,false;//ja 阅读全文
posted @ 2012-02-07 14:19 baikaishui1989 阅读(207) 评论(0) 推荐(0) 编辑

2012年2月6日

摘要: <!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.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2012-02-06 10:57 baikaishui1989 阅读(256) 评论(0) 推荐(0) 编辑