12 2014 档案

摘要:one_one_one1.用getElementById var o = document.getElementById("one"); alert(o.nodeType);//返回1 alert(o.getAttributeNode("title").nodeType);//返回2 alert(o... 阅读全文
posted @ 2014-12-31 10:29 PLDaily 阅读(295) 评论(0) 推荐(0)
摘要:getAttribute和setAttribute只能用于元素节点。1.当用getElementById获得元素节点时/*---------------------------index.html---------------------------*/ Shopping list What to ... 阅读全文
posted @ 2014-12-30 16:15 PLDaily 阅读(1017) 评论(0) 推荐(0)
摘要:List 新 浪 搜 狐 凤 凰 网 网 易 腾讯•QQ空间 百 度 微 博 爱淘宝 人 民 网 影视大全 阿里旅行 天猫 返利•团购 2345小游戏 淘 宝 网 京东商城 爱卡汽车 汽车之家 美 丽... 阅读全文
posted @ 2014-12-30 09:35 PLDaily 阅读(430) 评论(0) 推荐(0)
摘要:/*----------------------------index.html------------------------------------*/ Shopping list What to buy Don't forgrt to buy this stuff. A tin of b... 阅读全文
posted @ 2014-12-29 22:32 PLDaily 阅读(283) 评论(0) 推荐(0)
摘要:typeof可以告诉我们它的操作数是一个字符串(string)、数值(number)、函数(function)、布尔值(boolean)或对象(object)。1.字符串(string)alert(typeof("asss"))、alert(typeof("123"))等。此时警告框显示的是stri... 阅读全文
posted @ 2014-12-29 22:00 PLDaily 阅读(262) 评论(0) 推荐(0)