2016年6月3日

摘要: 阅读全文
posted @ 2016-06-03 08:07 I'm new 阅读(644) 评论(0) 推荐(0) 编辑
 
摘要: 增加运行速度。 阅读全文
posted @ 2016-06-03 07:31 I'm new 阅读(145) 评论(0) 推荐(0) 编辑
 

2016年6月2日

摘要: 阅读全文
posted @ 2016-06-02 16:53 I'm new 阅读(140) 评论(0) 推荐(0) 编辑
 
摘要: Object.prototype.__proto__ = null; //这是终点 __proto__指向的是构建者的prototype,它构成连接了原型链。 函数对象的prototype是个对象,里面有构造函数等,可克隆其他对象的方法。 原型链参考文章:http://blog.csdn.net/c 阅读全文
posted @ 2016-06-02 16:16 I'm new 阅读(156) 评论(0) 推荐(0) 编辑
 
摘要: Screen对象为整个显示屏的大小 window对象为浏览器的大小 阅读全文
posted @ 2016-06-02 13:28 I'm new 阅读(150) 评论(0) 推荐(0) 编辑
 
摘要: 1.获取主机名、路径、端口、协议 var hostName = window.location.hostname; var pathName = window.location.pathname; var port = window.location.port; var protocal = win 阅读全文
posted @ 2016-06-02 12:31 I'm new 阅读(90) 评论(0) 推荐(0) 编辑
 
摘要: 1、history对象前进 history.forward() 2、history对象后退 history.back() 3、history对象跳入指定页面 history.go(-1); //当前页面为0,前进为1后退为-1,等等。 阅读全文
posted @ 2016-06-02 12:19 I'm new 阅读(86) 评论(0) 推荐(0) 编辑
 
摘要: 连续执行: 1、 var timeInterval = setInterval(function(){},500); 2、清除计时: clearInterval(timeInterval); 暂停执行 1、 var tOut = setTimeOut(function(){},3000); 2、 停 阅读全文
posted @ 2016-06-02 11:36 I'm new 阅读(89) 评论(0) 推荐(0) 编辑
 
摘要: 1.获取窗口高宽 document.write("innerHegiht:"+window.innerHeight +"宽度:"+window.innerWidth); 2、打开新的窗口 window.open("http://www.163.com","网易"); 阅读全文
posted @ 2016-06-02 11:05 I'm new 阅读(91) 评论(0) 推荐(0) 编辑
 

2016年5月31日

摘要: xxx xxx xxx xxx 子节点 子节点1 子节点2 前面的子节点将被删除 节点3 忘记我见过 //ByName var nameA = document.getElementsByName('pn'); document.write("通过na... 阅读全文
posted @ 2016-05-31 20:45 I'm new 阅读(140) 评论(0) 推荐(0) 编辑