1.获取完整窗口大小:outerWidth/outerHeight
2.获取文档显示区大小:innerWidth/innerHeight
3.新窗口大小:resizeTo(width,height)
   resizeBy(width/height)增量
4.事件坐标:
   参照屏幕左上角: e.screenX, e.screenY
   参照文档显示区左上角: e.clientX||e.x , e.clientY||e.y
   参照所在父元素的左上角: e.offsetX , e.offsetY
5.前进/退后:history.go(1/-1)
6.当前页面打开不可后退:location.replace(“url”)
7.重新加载当前页面: location.reload(false/true)
8.判断是否有某一插件checkPlugin(“name”)
9.定时器一次性:clearInterval(timer);time=null
10.定时器周期性:cleartimeout(timer);time=null
11.停止定时器:
周期性: clearInterval(timer); timer=null
  一次性: clearTimeout(timer); timer=null
12.添加事件监听:btn.addEventListener(“事件名”,函数对象)
13.删除事件监听:btn.remove
14.EventListener(“事件名”,函数对象)
15.阻止冒泡:e.stopPropagation();
16.取消事件(阻止默认行为):e.preventDefault
17.创建cookie: document.cookie="变量名=值;expires="+date.toGMTString();