2012年8月18日
摘要: <a target="_blank" href="http://qun.qq.com/#jointhegroup/gid/77359308"><imgborder="0" src="http://cgi.qun.qq.com/gscgi/s1/gp.do?gid=77359308" alt="点击这里加入此群" title="点击这里加入此群"></a>详情:http://www.wuwan.net/post/20.htmlQQ在线:htt 阅读全文
posted @ 2012-08-18 21:34 逍遥叹 阅读(544) 评论(0) 推荐(0) 编辑
  2012年4月23日
摘要: <script type="text/javascript"> <!-- function SpecialArray(arr){ this.arr=arr; } SpecialArray.prototype.map=function(func){ for(var i=0;i<=this.arr.length;i++){ // for(var i=0,len=this.arr.length;i<len;i++){ this.arr[i]=func(this.arr[i]); } re... 阅读全文
posted @ 2012-04-23 09:56 逍遥叹 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 私有成员 <script type="text/javascript"> <!-- function CurrentAnswer(num) { var current=num; var newObject={ getCurrent:function(){return 'The current answer is :'+current;} } return newObject } var curr=new CurrentAnswer('5'); alert(curr.getCurrent()); //--> </s 阅读全文
posted @ 2012-04-23 09:02 逍遥叹 阅读(125) 评论(0) 推荐(0) 编辑
  2012年4月9日
摘要: <form> <fieldset> <legend>health information</legend> height: <input type="text" /> weight: <input type="text" /> </fieldset></form> optgroup <select> <optgroup label="Swedish Cars"> <option value ="vol 阅读全文
posted @ 2012-04-09 09:50 逍遥叹 阅读(141) 评论(0) 推荐(0) 编辑
摘要: sort(); //对数组元素排序 <script type="text/javascript"> <!-- function order(a,b){return a-b;} a=new Array(33,4,1111,222); b=a.sort(); c=a.sort(order); alert(b); //--> </script>splice() //插入或替换数组的元素 <!-- var a=[1,2,3,4,5,6,7,8,9] c=a.splice(4); //alert(c); //5,6,7,8,9 c=a.sp. 阅读全文
posted @ 2012-04-09 09:42 逍遥叹 阅读(123) 评论(0) 推荐(0) 编辑
  2012年4月8日
摘要: concat() //给数组添加元素var a=[1,2,3];a.concat(4,5) //返回【1,2,3,4,5】a.concat([4,5]) //返回【1,2,3,4,5】a.concat([4,5],[6,7]) //返回【1,2,3,4,5,6,7】a.concat(4,[5,[6,7]]) //返回【1,2,3,4,5,[6,7]】join() //把数组转化成字符串a=new Array(1,2,3,"sgdsgahg");s=a.join("+");alert(s); //显示1... 阅读全文
posted @ 2012-04-08 22:19 逍遥叹 阅读(137) 评论(0) 推荐(0) 编辑
摘要: window.open();var w= window.open("smallwin.html","smallwin","width=400,height=100,status=yes,resizable=yes"); 第一个参数是要在新窗口中显示的文档的URL第二个参数是新打开的窗口的名字,这个名字可以作为<a>标记或<form>标记的target属性的值,如果指定的是一个已经存在的窗口的名字,那么open()使用的就只是那个已经存在的窗口,而不是再打开一个新窗口。第三个参数是特性列表,这些特性声明了窗口的大 阅读全文
posted @ 2012-04-08 20:06 逍遥叹 阅读(147) 评论(0) 推荐(0) 编辑
摘要: <script> var abc=function(x){ if(x<2) return 1; else return x*arguments.callee(x-1); } var y=abc(5); alert(y);</script> 参数检验<script> function check(args){ var actual=args.length; //实际的参数长度 var expected=args.callee.length; //期待的参数长度 if (actual!=e... 阅读全文
posted @ 2012-04-08 19:40 逍遥叹 阅读(204) 评论(0) 推荐(0) 编辑
  2012年4月2日
摘要: 为IE添加的特权html <!--[if IE]>这里所写的内容只在IE上显示! <![endif]--> <!--[if IE 6]>这里所写的内容只在IE 6上显示! <![endif]--> javascript/*@cc_on @if(@_jscript) alert("在IE上的显示"); @else*/ alert("在非IE上的浏览器显示!"); /*@end @*/ 阅读全文
posted @ 2012-04-02 20:32 逍遥叹 阅读(116) 评论(0) 推荐(0) 编辑
  2012年3月22日
摘要: <iframe width="100%" height="500" frameborder="0" scrolling="no" src="http://widget.weibo.com/livestream/listlive.php?language=zh_cn&width=0&height=500&uid=2150719107&skin=1&refer=1&pic=1&titlebar=1&border=1&publish= 阅读全文
posted @ 2012-03-22 21:11 逍遥叹 阅读(335) 评论(0) 推荐(0) 编辑