return 返回值
1.函数名+括号 => return 后面的值
function fn1() => return 后面的值
2.所有函数默认返回值:未定义
3. return 后面任何代码都不执行
arguments 类数组
当函数的参数个数无法确定的时候:用 arguments
currentStyle 和 getComputedStyle 区别 和 相同点
相同:获取到的是计算机(浏览器)计算后的样式
.
区别:currentStyle (标准不兼容)
getComputedStyle (IE6 7 8不兼容)
定时器:
setInterval 和 setTimeout 区别 和 相同点
相同: setInterval( 函数, 毫秒 ) ; setTimeout( 函数, 毫秒 ) 都跟函数和毫秒
clearInterval( timer ) ; clearTimeout( timer )
.
区别:setInterval (重复执行)发动机; setTimeout(执行一次)炸弹