首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

JavaScript基础学习--10 return、定时器基础

[0]); }      2、当函数的参数个数无法确定时,用arguments      3、arguments可读可写,arguments[0] = 123; 三、getComputedStyle、currentStyle...标准浏览器不兼容,IE6、7、8兼容      4、检测兼容性:           4.1     版本检测法           4.2     属性判断法 //getComputedStyle、currentStyle...并解决获取样式兼容性问题 if(id.currentStyle){ //属性判断法:判断是否认得该属性 id.currentStyle.width; }else...obj.currentStyle[attr] : getComputedStyle(obj, null)[attr]; //null是兼容FF4.0以下中的bug } var width =...此时用getComputedStyle || currentStyle  四、setInterval 定时器     重复执行      1、setInterval( function, time);

79360
领券