js
Tree_building
这个作者很懒,什么都没留下…
展开
-
JS DOM对象控制HTML元素
<p id="p"></p> //id唯一<p name="p"></p> //name不唯一 (数组)<a></a> //tagname (数组)getAttribute() --获取元素属性setAttribute() --设置元素属性<转载 2018-03-14 17:30:26 · 189 阅读 · 0 评论 -
JS浏览器对象 --计时器
1.计时方法 1)setInterval() -间隔指定的毫秒数不停地执行指定的代码 clearInterval() -停止setInterval()方法执行的函数代码 2)setTimeout() -暂停指定的毫秒数后执行指定的代码 (递归) clearTimeOut() an var mytime = setInterval(转载 2018-03-14 18:06:08 · 206 阅读 · 0 评论 -
js history、location、screen对象
1.window.history对象包含浏览器的历史的集合 方法: history.back() history.forword() history.go() go() 方法可加载历史列表中的某个具体的页面。 该参数可以是数字,使用的是要访问的 URL 在 History 的 URL 列表中的相对位置。(-1上一个页面,1前进一个页面)。或一个字符串,字符串转载 2018-03-14 18:57:23 · 188 阅读 · 0 评论 -
js面向对象
<!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8"> </head> <body> <script type="text/javascript"转载 2018-03-14 11:16:11 · 130 阅读 · 0 评论