07 2015 档案

摘要:demo1:你好 -->// console.log(test.nodeType,test.getAttribute("v"),test.nodeName,test.firstChild.nodeValue);//firstChild.nodeValue是第一个节点的value的值demo2: 1 ... 阅读全文
posted @ 2015-07-26 14:30 唸随爱 阅读(174) 评论(0) 推荐(0)
摘要:第一个页面:nihao第二个页面:var str = location.search, ary = str.substring(1).split("&"),//substring str中从第二个字母开始选择,split把字符串改成数组并用&间隔两个数据 endary = [], i = 0,... 阅读全文
posted @ 2015-07-26 11:51 唸随爱 阅读(205) 评论(0) 推荐(0)
摘要:视口的宽和高var pw = window.innerWidth, ph = window.innerHeight; if(typeof pw != "number"){ pw = document.documentElement.clientWidth; ph = document.d... 阅读全文
posted @ 2015-07-26 10:47 唸随爱 阅读(1593) 评论(0) 推荐(0)
摘要:// var guanbi = false; // $("#testbtn").click(function(){ // if(guanbi){ // $("#tan").hide(); // guanbi = false; // }else{ // $("#tan").show... 阅读全文
posted @ 2015-07-12 14:17 唸随爱 阅读(176) 评论(0) 推荐(0)
摘要:var a = (function(){ var c= 0; return function(){ return ++c; } }()); var g = a(); console.log(g); var e= a(); console.log(e); var f = a(); cons... 阅读全文
posted @ 2015-07-12 12:14 唸随爱 阅读(242) 评论(0) 推荐(0)
摘要:// function functionname(){// function b(){// console.log(arguments.callee.caller.name);// }// b();// }// functionname(); 阅读全文
posted @ 2015-07-12 11:04 唸随爱 阅读(169) 评论(0) 推荐(0)
摘要:随着现代浏览器的流行,纯CSS设置checkbox也变的很是实用,下面会讲到5种与众不同的checkbox复选框。首先,需要添加一段CSS隐藏所有的Checkbox复选框,下面我们会改变它的外观。要做到点需要添加一段代码到你的CSS文件中。/*** 隐藏默认的checkbox*/input[type... 阅读全文
posted @ 2015-07-02 12:35 唸随爱 阅读(1978) 评论(0) 推荐(0)