01 2021 档案

摘要:六种调用函数的方法 普通函数 function fn1(){ log(1); } 调用 : fn1(); this指向 : window 对象函数 var obj={ a : 0, b : 1, fn2:function(){ log(2); } } 调用 : obj.fn2(); this指向 : 阅读全文
posted @ 2021-01-20 15:38 二柒的博客 阅读(210) 评论(0) 推荐(0) 编辑
摘要:时间委派就是把原本加在子元素身上的事件绑定到父元素身上,就是把事件委派给父元素 原生事件委派 jQuery事件委派 阅读全文
posted @ 2021-01-18 18:15 二柒的博客 阅读(70) 评论(0) 推荐(0) 编辑
摘要:// 双击禁止选中文字 window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty(); 阅读全文
posted @ 2021-01-17 14:02 二柒的博客 阅读(82) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
more_horiz
keyboard_arrow_up light_mode palette
选择主题