摘要:
clientWidth & clientHeight 客户宽高(元素的width+padding) offsetWidth & offsetHeight 偏移宽高 (元素的width+pading+border)即元素实际大小,只与元素设定的width,height,padding,border 有 阅读全文
posted @ 2020-04-06 14:13
进文欧尼
阅读(128)
评论(0)
推荐(0)
|
摘要:
clientWidth & clientHeight 客户宽高(元素的width+padding) offsetWidth & offsetHeight 偏移宽高 (元素的width+pading+border)即元素实际大小,只与元素设定的width,height,padding,border 有 阅读全文
posted @ 2020-04-06 14:13
进文欧尼
阅读(128)
评论(0)
推荐(0)
摘要:
1、命名函数 function abc(){ // abc是函数名 console.log("a"); } var fn=abc; //把函数abc地址赋值传给fn fn(); // 或者 abc(); => 执行函数 命名函数的特点: 1.有函数名,可以通过函数调用函数2.声明提前,当执行到scr 阅读全文
posted @ 2020-03-29 17:03
进文欧尼
阅读(1246)
评论(0)
推荐(1)
|