摘要: $(document).mouseup(function(e){ var _con=$('目标区域class/id') ; // 获取目标区域 if(!_con.is(e.target) && _con.has(e.target).length 0){ // 判断点击事件发生在区域外的条件是 // 阅读全文
posted @ 2018-06-25 13:40 IT刘磊 阅读(1491) 评论(0) 推荐(0) 编辑
摘要: 阿里 阿里2 百度 阅读全文
posted @ 2018-06-25 11:02 IT刘磊 阅读(774) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE HTML><html><head> <meta charset="utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content = " 阅读全文
posted @ 2018-06-25 10:56 IT刘磊 阅读(195) 评论(0) 推荐(0) 编辑
摘要: // dom 自己填写 $(window).scroll(function(){floor_scroll();}); // 滚动 执行 function floor_scroll(){ $(".quan").each(function(index, el) { // 遍历 页面内容 有几个楼层 就有 阅读全文
posted @ 2018-06-25 10:48 IT刘磊 阅读(334) 评论(0) 推荐(0) 编辑
摘要: function scroto(tray){ var timer=setTimeout(function(){ var curr_y=document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop 阅读全文
posted @ 2018-06-25 10:24 IT刘磊 阅读(760) 评论(0) 推荐(0) 编辑