摘要:
demo1:你好 -->// console.log(test.nodeType,test.getAttribute("v"),test.nodeName,test.firstChild.nodeValue);//firstChild.nodeValue是第一个节点的value的值demo2: 1 ... 阅读全文
摘要:
第一个页面:nihao第二个页面:var str = location.search, ary = str.substring(1).split("&"),//substring str中从第二个字母开始选择,split把字符串改成数组并用&间隔两个数据 endary = [], i = 0,... 阅读全文
摘要:
视口的宽和高var pw = window.innerWidth, ph = window.innerHeight; if(typeof pw != "number"){ pw = document.documentElement.clientWidth; ph = document.d... 阅读全文