摘要: 阿里 阿里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) 编辑
摘要: 什么是事件? 事件是文档或浏览器窗口发生的一些特定的交互瞬间, 比如 点击 双击 滚动条滑动…… 什么是事件流? 事件流指的是 从页面接收事件的顺序。 关于事件流,IE和Netscape提出了差不多相反的概念,IE提出的就是广为人知的事件冒泡流,而Netscape提出的则是事件捕获流。 事件冒泡流: 阅读全文
posted @ 2018-03-13 16:46 IT刘磊 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 示例一(正常的ajax请求) 示例二(跨域错误的ajax请求) 为啥AJAX跨域 1、浏览器限制(为了安全) 2、跨域 3、xhr 请求(带src的请求就不会跨域,因为不是xhr请求) ajax跨域解决方法 1、浏览器禁止检查(实际中不现实,难保证用户的一致性) 2,、不发送xhr请求(使用json 阅读全文
posted @ 2018-03-12 17:50 IT刘磊 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 1.播放器ckplayer 2.百度地图BaiduMap 3.百度编辑器ueditor 4.laryer弹窗处理 5.number_jump数字跳动 6.uploadify3.1上传插件 阅读全文
posted @ 2017-11-23 10:55 IT刘磊 阅读(133) 评论(0) 推荐(0) 编辑
摘要: function getCookie(c_name){ if(document.cookie.length>0){c_start = document.cookie.indexOf(c_name+'=');if(c_start != 1){c_start = c_start + c_name.len 阅读全文
posted @ 2017-11-23 10:54 IT刘磊 阅读(1262) 评论(0) 推荐(0) 编辑
摘要: 一、语法:<meta name="name" content="string"> 二、参数解析:1)name选项:Keywords(关键字),description(网站内容描述),author(作者),robots(机器人向导)等等 2)http-equiv项:可用于代替name项,常用的选项有E 阅读全文
posted @ 2017-11-23 10:52 IT刘磊 阅读(997) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, i 阅读全文
posted @ 2017-08-11 17:23 IT刘磊 阅读(797) 评论(0) 推荐(0) 编辑