摘要: demo1:你好 -->// console.log(test.nodeType,test.getAttribute("v"),test.nodeName,test.firstChild.nodeValue);//firstChild.nodeValue是第一个节点的value的值demo2: 1 ... 阅读全文
posted @ 2015-07-26 14:30 唸随爱 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 第一个页面:nihao第二个页面:var str = location.search, ary = str.substring(1).split("&"),//substring str中从第二个字母开始选择,split把字符串改成数组并用&间隔两个数据 endary = [], i = 0,... 阅读全文
posted @ 2015-07-26 11:51 唸随爱 阅读(196) 评论(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 唸随爱 阅读(1585) 评论(0) 推荐(0) 编辑