![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js知识点内容
青丝不压头颅
这个作者很懒,什么都没留下…
展开
-
js-变量的检测
1.typeof()检测的对象是 number/string/boolean/undefined/funtion// typeof 检测类型 console.log(typeof "jiwd"); //string console.log(typeof 111); //number console.log(typeof false); //boolean console.log(typeof undefined); //undefined console..原创 2021-10-23 17:44:15 · 130 阅读 · 0 评论 -
js-mouseover和mouseenter的区别---面试题
1.mouseenter鼠标事件当鼠标移到元素上时就会触发mouseenter事件2.区别mouseover鼠标经过自身盒子会触发,经过子盒子还会触发,mouseenter只会经过自身盒子触发。原因:因为mouseenter不会冒泡3.与mouseenter搭配使用的mouseleave鼠标离开事件,同样不会冒泡...原创 2021-09-28 23:02:12 · 83 阅读 · 0 评论