标签:
WINDOW:
================================================
窗口页面区域宽高
var w=window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var h=window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
屏幕可用宽高screen.availWidth,availHeight
URLlocation:
window.location 对象在编写时可不使用 window 这个前缀。
一些例子:
history:
navigator:具有误导性的特质,我们暂且不管他
消息框:
alert() 提示框
confirm(T/F)
prompt(value/null)
计时器:
这也是面试基本都会问到的基础题
setTimeout clearTimeout
特征:在未来某时调用一次
如果要玄幻,就要不断调用自己
标签:
原文地址:http://www.cnblogs.com/belongcai/p/4906855.html