#,广西南宁市,2017-05-27,15:23:51, 曾经学英语想考雅思,去WHV,结果荒废了。。假如真有个随身英语导师,随时随地帮助你学习英语,多么美好。 if you are, you breathe. If you breath, you talk. If you talk, you ask. If you ask, you think. If you think, you search. If you search, you experience. If you experience, you learn. If you learn, you grow. If you grow, you wish. If you wish, you find, and if you find, you doubt. If you doubt, you question. If you question, you understand, and if you understand, you know. If you know, you want to know more. If you want to know more, you are alive.
#,广西,2017-05-27,21:38:08, 克罗地亚狂想曲,世界上最好听的钢琴曲之一。其他:卡农,梦中的婚礼,花之舞,菊次郎的夏天,夜的钢琴曲5,至爱丽丝,雨的印记,Luv Letter 等....
#1236
#1237
1、A页面跳到B页面,两个页面都有购物车,B页面清空/修改购物车产品后,返回A页面后,A页面的购物车仍是之前的内容,读取的缓存
解决:在A页面加入以下代码片段
if (document.addEventListener) { window.addEventListener('pageshow', function (event) { if (event.persisted || window.performance && window.performance.navigation.type == 2) { location.reload(); } }, false); }
2、h5的html属性存储,如data-id=5存储的值为number,但.dataset.id返回的是字符串
3、给元素绑定事件,删除节点后(事件也同步解绑),再重新增加新的节点,也没有事件了。
解决:
jquery给待重新渲染(删除后重新新增)的节点父级元素绑定事件,parent.on('click',child,function(){....})
4、NaN === NaN false
5、异步回调地狱,jquery用defferred对象的方法解决
6、.find('')[i].dataset.id 就能获取,错误示范为==> .find('')[i]..get(0).dataset.id
7、其他需巩固的知识点
页面reflow、render,IOS无法冒泡,history的pushState()、replaceState()方法,html模板引擎的进一步熟练使用
#1238
椭圆形是正圆形的一个变体,同样使用一个带ID的div来制作。 设置椭圆形的CSS时,高度要设置为宽度的一半,border-radius属性也要做相应的改变: <div id="oval"></div> <style> #oval { width: 200px; height: 100px; background: #e9337c; -webkit-border-radius: 100px / 50px; -moz-border-radius: 100px / 50px; border-radius: 100px / 50px; }</style>
要创建一个CSS三角形,需要使用border,通过设置不同边的透明效果,我们可以制作出三角形的现状。另外,在制作三角形时,宽度和高度要设置为0。
<div id="triangle"></div> <style>#triangle { width: 0; height: 0; border-bottom: 140px solid #fcf921; border-left: 70px solid transparent; border-right: 70px solid transparent; }</style>
与正三角形不同的是,倒三角形要设置的是border-top、border-left和border-right三条边的属性:
<div id="triangle"></div> <style>#triangle { width: 0; height: 0; border-top: 140px solid #20a3bf; border-left: 70px solid transparent; border-right: 70px solid transparent; }</style>
左三角形操作的是border-top、border-left和border-right三条边的属性,其中上边和下边要设置透明属性。
<div id="triangle_left"></div> <style>#triangle_left { width: 0; height: 0; border-top: 70px solid transparent; border-right: 140px solid #6bbf20; border-bottom: 70px solid transparent; } </style>
右三角形
右三角形操作的是border-bottom、border-left和border-right三条边的属性,其中上边和下边要设置透明属性。
<div id="triangle_right"></div> <style>#triangle_right { width: 0; height: 0; border-top: 70px solid transparent; border-left: 140px solid #ff5a00; border-bottom: 70px solid transparent; }</style>
菱形
制作菱形的方法有很多种。这里使用的是transform属性和rotate相结合,使两个正反三角形上下显示。
<div id="diamond"></div> <style>#diamond { width: 120px; height: 120px; background: #1eff00; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-transform-origin: 0 100%; -moz-transform-origin: 0 100%; -ms-transform-origin: 0 100%; -o-transform-origin: 0 100%; transform-origin: 0 100%; margin: 60px 0 10px 310px; } </style>
梯形
梯形是三角形的一个变体,设置CSS梯形时,左右两条边设置为相等,并且给它设置一个宽度。
<div id="trapezium"></div> <style>#trapezium { height: 0; width: 120px; border-bottom: 120px solid #ec3504; border-left: 60px solid transparent; border-right: 60px solid transparent; }</style>
平行四边形的制作方式是使用transform属性使长方形倾斜一个角度。
<div id="parallelogram"></div> <style>#parallelogram { width: 160px; height: 100px; background: #8734f7; -webkit-transform: skew(30deg); -moz-transform: skew(30deg); -o-transform: skew(30deg); transform: skew(30deg); }</style>
星形
星形的HTML结构同样使用一个带ID的空div。星形的实现方式比较复杂,主要是使用transform属性来旋转不同的边。仔细体会下面的代码。
<div id="star"></div> <style>#star { width: 0; height: 0; margin: 50px 0; color: #fc2e5a; position: relative; display: block; border-right: 100px solid transparent; border-bottom: 70px solid #fc2e5a; border-left: 100px solid transparent; -moz-transform: rotate(35deg); -webkit-transform: rotate(35deg); -ms-transform: rotate(35deg); -o-transform: rotate(35deg); } #star:before { height: 0; width: 0; position: absolute; display: block; top: -45px; left: -65px; border-bottom: 80px solid #fc2e5a; border-left: 30px solid transparent; border-right: 30px solid transparent; content: ''; -webkit-transform: rotate(-35deg); -moz-transform: rotate(-35deg); -ms-transform: rotate(-35deg); -o-transform: rotate(-35deg); } #star:after { content: ''; width: 0; height: 0; position: absolute; display: block; top: 3px; left: -105px; color: #fc2e5a; border-right: 100px solid transparent; border-bottom: 70px solid #fc2e5a; border-left: 100px solid transparent; -webkit-transform: rotate(-70deg); -moz-transform: rotate(-70deg); -ms-transform: rotate(-70deg); -o-transform: rotate(-70deg); }</style>
六角星形
CSS六角星形
和五角星的制作方法不同,六角星形状的制作方法是操纵border属性来制作两半图形,然后合并它们。
<div id="star_six_points"></div> <style>#star_six_points { width: 0; height: 0; display: block; position: absolute; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 100px solid #de34f7; margin: 10px auto; } #star_six_points:after { content: ""; width: 0; height: 0; position: absolute; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 100px solid #de34f7; margin: 30px 0 0 -50px; } </style>
五边形
CSS五边形
创建CSS五边形需要结合两个图形:一个梯形,然后在它的上面放一个三角形,共同组成一个五边形。
<div id="pentagon"></div> <style>#pentagon { width: 54px; position: relative; border-width: 50px 18px 0; border-style: solid; border-color: #277bab transparent; } #pentagon:before { content: ""; height: 0; width: 0; position: absolute; top: -85px; left: -18px; border-width: 0 45px 35px; border-style: solid; border-color: transparent transparent #277bab; } </style>
六边形
六边形的制作方法可以有很多种,可以像五边形一样,先制作一个长方形,然后在它的上面和下面各放置一个三角形。
<div id="hexagon"></div> <style>#hexagon { width: 100px; height: 55px; background: #fc5e5e; position: relative; margin: 10px auto; } #hexagon:before { content: ""; width: 0; height: 0; position: absolute; top: -25px; left: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 25px solid #fc5e5e; } #hexagon:after { content: ""; width: 0; height: 0; position: absolute; bottom: -25px; left: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 25px solid #fc5e5e; }</style>
CSS八角形
八角形的制作方法也有多种方式,这里使用的是先制作两个相同的梯形,然后在两边分别放置一个三角形。
<div id="octagon"></div> <style>#octagon { width: 100px; height: 100px; background: #ac60ec; position: relative; } #octagon:before { content: ""; width: 42px; height: 0; position: absolute; top: 0; left: 0; border-bottom: 29px solid #ac60ec; border-left: 29px solid #f4f4f4; border-right: 29px solid #f4f4f4; } #octagon:after { content: ""; width: 42px; height: 0; position: absolute; bottom: 0; left: 0; border-top: 29px solid #ac60ec; border-left: 29px solid #f4f4f4; border-right: 29px solid #f4f4f4; } </style>
CSS心形
心形的制作是非常复杂的,可以使用伪元素来制作,分别将伪元素旋转不同的角度,并修改transform-origin属性来元素的旋转中心点。
<div id="heart"></div> <style>#heart { position: relative; } #heart:before,#heart:after { content: ""; width: 70px; height: 115px; position: absolute; background: red; left: 70px; top: 0; -webkit-border-radius: 50px 50px 0 0; -moz-border-radius: 50px 50px 0 0; border-radius: 50px 50px 0 0; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-transform-origin: 0 100%; -moz-transform-origin: 0 100%; -ms-transform-origin: 0 100%; -o-transform-origin: 0 100%; transform-origin: 0 100%; } #heart:after { left: 0; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); -webkit-transform-origin: 100% 100%; -moz-transform-origin: 100% 100%; -ms-transform-origin: 100% 100%; -o-transform-origin: 100% 100%; transform-origin: 100% 100%; } </style>
蛋形时椭圆形的一个变体,它的高度要比宽度稍大,并且设置正确的border-radius属性即可以制作出一个蛋形。
<div id="egg"></div> <style>#egg { width: 136px; height: 190px; background: #ffc000; display: block; -webkit-border-radius: 63px 63px 63px 63px / 108px 108px 72px 72px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; } </style>
CSS无穷符号
无穷符号可以通过border属性和设置伪元素的角度来实现。
<div id="infinity"></div> <style>#infinity { width: 220px; height: 100px; position: relative; } #infinity:before,#infinity:after { content: ""; width: 60px; height: 60px; position: absolute; top: 0; left: 0; border: 20px solid #06c999; -moz-border-radius: 50px 50px 0; border-radius: 50px 50px 0 50px; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); } #infinity:after { left: auto; right: 0; -moz-border-radius: 50px 50px 50px 0; border-radius: 50px 50px 50px 0; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); }</style>
消息提示框可以先制作一个圆角矩形,然后在需要的地方放置一个三角形。
<div id="comment_bubble"></div> <style>#comment_bubble { width: 140px; height: 100px; background: #088cb7; position: relative; -moz-border-radius: 12px; -webkit-border-radius: 12px; border-radius: 12px; } #comment_bubble:before { content: ""; width: 0; height: 0; right: 100%; top: 38px; position: absolute; border-top: 13px solid transparent; border-right: 26px solid #088cb7; border-bottom: 13px solid transparent; } </style>
吃豆人的制作方法是先在一个圆形里面制作一个透明的三角形。
<div id="pacman"></div> <style>#pacman { width: 0; height: 0; border-right: 70px solid transparent; border-top: 70px solid #ffde00; border-left: 70px solid #ffde00; border-bottom: 70px solid #ffde00; border-top-left-radius: 70px; border-top-right-radius: 70px; border-bottom-left-radius: 70px; border-bottom-right-radius: 70px; }</style>
#1239
CSS3的一个非常酷的特性是允许我们创建各种规则和不规则形状的图形,从而可以减少图片的使用。以前只能在Photoshop等图像编辑软件中制作的复杂图形现在使用CSS3就可以完成了。通过使用新的CSS属性,像transform和border-radius,我们可以创建非常漂亮和复杂的图形效果。
圆形
要使用CSS来制作一个圆形,我们需要一个div,被给它设置一个ID。
圆形在设置CSS时要设置宽度和高度相等,然后设置border-radius属性为宽度或高度的一半即可:
<div id="circle"></div> <style> #circle { width: 120px; height: 120px; background: #7fee1d; -moz-border-radius: 60px; -webkit-border-radius: 60px; border-radius: 60px; }</style>
#1240
设置父元素opacity:0.5,子元素没有设置opacity,子元素会受到父元素的影响,也会有0.5的透明度。
即使设置子元素opacity为1,也是在父元素的opacity为0.5的基础上设置为1的,那么子元素的opacity还是0.5。
解决方法:为父元素设置background: rgba(0,0,0,0.5),不会影响子元素的显示。
#1241
#1242
书看太少
网上太多
谁都有青春期,家长身为最亲近的人都没办法去理解,就别指望陌生人了,心理医生也拉不回来。真不怪现在一部分年轻人不想生孩子,因为他们更懂一个生命的沉重。
才知道有日本同事想休息但又觉得陪家人得不到“真正的休息”时会请带薪假但不和家里人说,早上假装出门上班其实是去看电影、打小钢珠去……。但后来被老婆查工资单发现了。
if you are, you breathe.
If you breath, you talk.
If you talk, you ask.
If you ask, you think.
If you think, you search.
If you search, you experience.
If you experience, you learn.
If you learn, you grow.
If you grow, you wish.
If you wish, you find, and if you find, you doubt.
If you doubt, you question.
If you question, you understand, and if you understand, you know.
If you know, you want to know more.
If you want to know more, you are alive.
#1243
实体生意,还不是要靠”幌子“,店招,什么”蟑螂不死我死等等“
你永远只去抓标题,永远有标题党,你永远去抓图片也会产生图片党,自己优化好自己的算法再来批评标题党吧。
#1244
#1245
#1246
#1247
#1248
#1249
#1250
#1251
#1252
那么问题来了,总觉得百度在吹牛逼。。。。。以前还说o2o要投入200亿,狼长对外喊得口号都是以百亿为单位么。。。。。
更可笑的是答辩的时候在台上的时候,居然也打电话来了,还好我调的是震动
有一次发烧请假,在去医院的路上,也打电话过来了
没啥特别的事,就是发现了个 bug 跟我一声
每天 11 点下班已经严重影响个人生活了,哪有时间陪家人和做自己的事?关机又如何,开除又如何,活得洒脱点总比像签了卖身契一样工作好。
#1253
<script>window.log = console.log = (function (originFunc) { return function () { if (window.consoleParams && window.consoleParams.hideLog) return // 生产环境不显示log let showType let tempStr let resArgs let backgroundUrl let backgroundUrlArr = [ 'http://img.soogif.com/oTaaBm2f12ro2oHYt8MXO7ucTZ9LFDff.gif_s400x0', 'http://i687.photobucket.com/albums/vv237/4-one/4-1/ICON-4/nhj-ks-114.gif', 'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2431180542,3208247057&fm=21&gp=0.jpg', 'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1389931060,999032458&fm=21&gp=0.jpg', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2349925870,4158861286&fm=21&gp=0.jpg', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1161084296,912592514&fm=21&gp=0.jpg', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=568429576,1662716019&fm=21&gp=0.jpg', 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2891158369,689005317&fm=21&gp=0.jpg', 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=523690750,3468977024&fm=21&gp=0.jpg', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1674189186,3858474740&fm=21&gp=0.jpg' ] let params = Array.prototype.slice.call(arguments) // 保存arguments数组,有push方法 let color = window.consoleParams && window.consoleParams.color || '#58baff' let fontSize = window.consoleParams && window.consoleParams.fontSize || '12px' if (window.consoleParams && window.consoleParams.url) { backgroundUrl = window.consoleParams && window.consoleParams.url } else { backgroundUrl = backgroundUrlArr[parseInt(Math.floor(Math.random() * 10))] } let backgroundHeightSize = window.consoleParams && window.consoleParams.height || 50 let iconStyle = 'line-height: ' + backgroundHeightSize + 'px; padding: ' + backgroundHeightSize / 2 + 'px 10px ' + backgroundHeightSize / 2 + 'px ' + backgroundHeightSize + 'px; color: ' + color + '; font-size: ' + fontSize + '; background: url(' + backgroundUrl + ') no-repeat left center; background-size: auto ' + backgroundHeightSize + 'px' let args = ['%c', iconStyle] if (!params.length) { args[0] = '%c ' + '(请输入要打印的值...)' resArgs = args } else { for (let p of params) { if (typeof p !== 'string' && typeof p !== 'number') { showType = 2 break } showType = 1 } if (showType === 1) { for (let i = 0; i < params.length; i++) { if (typeof params[i] === 'string') { params[i] = '"' + params[i] + '"' } } tempStr = params.join(' ') args[0] = '%c ' + tempStr resArgs = args } else { resArgs = args.concat(params) } } originFunc.apply(console, resArgs) } })(console.log);log(123);</script>
重写 console.log 方法,让枯燥编码多一丝乐趣。
use console.log() or log() params window.consoleParams = { hideLog: , // default false color: '', // default '#58baff' fontSize: '', // default '12px' height: , // default 50 backgroundUrl: '', // default Array }
#1254
<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <style> li, ul { list-style: none outside none; } #calendar{font-size:.3rem;width:100%;overflow:hidden;margin:.2rem auto;border:1px solid #e9e9e9;border-radius:5px;color:#333;background:#f1f1f1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.calenday_head{text-align:center;padding:.2rem 0 .1rem}.calenday_head>span{font-size:.32rem}.calenday_head>i,.calenday_head>span{display:inline-block;vertical-align:middle}.calenday_head>i{width:1.2rem;height:.32rem}.calenday_head>i:active{opacity:.5}.calenday_head>i.icon_left{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHrSURBVHhe7du7bcMwEAZgKxogSCl13sDQBMkG6dI6E2Qke4SUKT2BwBVSqc0CgnIXQEBgSI4A3uO/gK7Fx/9ZoimS3u3KpwgUgSIQROBAn67rjpLdrSUr06yLw9d1famq6qVpms9hGJJEeyEA5vAU+J5DE8KzFAI8wHX4+VuXQriTuI206lgL/wvhLbdtWIC/wlPwNI7jUy5AlVuBRvmt4VNKX7ntwwFYhv8ZUHMFJctbh4cC8AgPA+AVngHcfwUo/CPP8OZJzsIjdeHRXmLAW3pcXccAntfThOa0No5M03Tu+/5Vcpy5rssNACG82xiAEt4FACm8OQBaeFMAxPBmAKjhTQCQw6sDoIdXBYgQXg0gSngVgEjhxQGihRcFiBheDCBqeBGAyOFNFkTofd/tlXvLOkL2zhDv0fE2Fe/UrDR4aNt2T9e9b+mQ9TXZANzhyAgiAJERxACiIogCREQQB4iGoAIQCUENIAqCKkAEBHUAdAQTAGQEMwBUBFMARARzADQEFwAkBDcAFARXAAQEdwBvBAgATwQYAC8EKAAPBDgAawRIgK0ItBr9QAuyHzkrye4HJW91ns4Inums4K1zgiknPJeFvQPmYGtL7gzDQP8eYOlxkAqfi2denvchpf82Zx6iNFgEigCUwDdaicNcZv+T9gAAAABJRU5ErkJggg==) no-repeat;background-size:auto 100%;background-position:center}.calenday_head>i.icon_hide_left{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHrSURBVHhe7du7bcMwEAZgKxogSCl13sDQBMkG6dI6E2Qke4SUKT2BwBVSqc0CgnIXQEBgSI4A3uO/gK7Fx/9ZoimS3u3KpwgUgSIQROBAn67rjpLdrSUr06yLw9d1famq6qVpms9hGJJEeyEA5vAU+J5DE8KzFAI8wHX4+VuXQriTuI206lgL/wvhLbdtWIC/wlPwNI7jUy5AlVuBRvmt4VNKX7ntwwFYhv8ZUHMFJctbh4cC8AgPA+AVngHcfwUo/CPP8OZJzsIjdeHRXmLAW3pcXccAntfThOa0No5M03Tu+/5Vcpy5rssNACG82xiAEt4FACm8OQBaeFMAxPBmAKjhTQCQw6sDoIdXBYgQXg0gSngVgEjhxQGihRcFiBheDCBqeBGAyOFNFkTofd/tlXvLOkL2zhDv0fE2Fe/UrDR4aNt2T9e9b+mQ9TXZANzhyAgiAJERxACiIogCREQQB4iGoAIQCUENIAqCKkAEBHUAdAQTAGQEMwBUBFMARARzADQEFwAkBDcAFARXAAQEdwBvBAgATwQYAC8EKAAPBDgAawRIgK0ItBr9QAuyHzkrye4HJW91ns4Inums4K1zgiknPJeFvQPmYGtL7gzDQP8eYOlxkAqfi2denvchpf82Zx6iNFgEigCUwDdaicNcZv+T9gAAAABJRU5ErkJggg==) no-repeat;background-size:auto 100%;background-position:center}.calenday_head>i.icon_right{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAABuUlEQVR4Xu3b4W2DMBCGYZ+yQEdB9gIZoRu0naCrdIN0g47QTkC9SgcAqqsaKT8AReJ8932C/Iwiw/uAMQhF0s4/svP+dAAcZ4ChQM75WYfr+/7dcNimQ5lNAY0XkYvu7TRNLywIJgC38dfDxYKwGWAungnBAuBNRF6XJir6mbAZQMNLKXrRe2JEMAFgRjADYEUwBWBEMAdgQ2gCwITQDIAFoSkAA0JzAHQEFwBkBDcAVARXAEQEdwA0hBAAJIQwABSEUAAEhHCAaAQIgEgEGIAoBCiACAQ4AG8ESABPBFgALwRogJzzRUT+3jfOfSzeOcACeMQrKiSAVzwkgGc8HIB3PBRARDwMQFQ8BEBkfDhAdHwoAEJ8GABKfAgAUrw7AFq8KwBivBsAarwLAHJ8U4Cu6x5Op9NHSum88Dj/MwzDY631a+l53+P7Jo/D//GfKaVuJf5ca60ekWvbMAdgijefAmzxpgCM8WYArPEmAMzxJgCllG+Gq/3SSrB5FVj5w4Su8xBLXfNlcAaBIt5kClx1bxBo4k0BdDBFGMdRb/DC7/DuvcPcfA24d0OovzsAUI+M137t/gz4BWjex1CBVI5TAAAAAElFTkSuQmCC) no-repeat;background-size:auto 100%;background-position:center}.calenday_head>i.icon_hide_right{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAABuUlEQVR4Xu3b4W2DMBCGYZ+yQEdB9gIZoRu0naCrdIN0g47QTkC9SgcAqqsaKT8AReJ8932C/Iwiw/uAMQhF0s4/svP+dAAcZ4ChQM75WYfr+/7dcNimQ5lNAY0XkYvu7TRNLywIJgC38dfDxYKwGWAungnBAuBNRF6XJir6mbAZQMNLKXrRe2JEMAFgRjADYEUwBWBEMAdgQ2gCwITQDIAFoSkAA0JzAHQEFwBkBDcAVARXAEQEdwA0hBAAJIQwABSEUAAEhHCAaAQIgEgEGIAoBCiACAQ4AG8ESABPBFgALwRogJzzRUT+3jfOfSzeOcACeMQrKiSAVzwkgGc8HIB3PBRARDwMQFQ8BEBkfDhAdHwoAEJ8GABKfAgAUrw7AFq8KwBivBsAarwLAHJ8U4Cu6x5Op9NHSum88Dj/MwzDY631a+l53+P7Jo/D//GfKaVuJf5ca60ekWvbMAdgijefAmzxpgCM8WYArPEmAMzxJgCllG+Gq/3SSrB5FVj5w4Su8xBLXfNlcAaBIt5kClx1bxBo4k0BdDBFGMdRb/DC7/DuvcPcfA24d0OovzsAUI+M137t/gz4BWjex1CBVI5TAAAAAElFTkSuQmCC) no-repeat;background-size:auto 100%;background-position:center}.calendar_week{font-size:.3rem;width:100%;height:.9rem;line-height:.9rem;text-align:center;background:#f1f1f1}.calendar_week>li{position:relative;float:left;width:14.2857%}.calendar_day{width:100%;height:auto;text-align:center}.calendar_day>li{height:1rem;line-height:1rem}.calendar_day>li>p{float:left;width:14.28%;height:1rem;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.calendar_day>li>p>span{display:inline-block;width:.6rem;height:.6rem;line-height:.6rem}.today>span{color:#00a1e9!important}.hide_day{color:#ccc!important}.cd_active>span{color:#fff!important;background:#00a1e9;border-radius:50%}</style> <div id="demoDate"> <!--日历展示--> </div> <script>eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(H(B,C,D){H V(a,b){8.Z=1j a==\'1T\'?C.K(a):a;8.G={N:\'\',O:\'\',1g:1R};T(5 i 1I b){8.G[i]=b[i]}8.1i=U 11().1F();8.1b=U 11().1L();8.1f=U 11().1G();6(8.1D()!=0){8.1x();8.M(8.1f+1,8.1b);8.1w()}}V.1N={1v:H(a){6((a%4==0&&a%1V!=0)||(a%1W==0)){Q 1}Q 0},1u:H(a,b){5 c=9(a)+1;c=c<10?"0"+c:c;Q b+"-"+c},1x:H(){5 a=8;5 b=\'<1s R="1U">\';b+=\'<p P="1X">\';b+=\'<i P="1r" R="1q"></i>\';b+=\'<X R="15"></X>\';b+=\'<i P="1l" R="1k"></i>\';b+=\'</p>\';b+=\'<13 P="1S"><E>日</E><E>一</E><E>二</E><E>三</E><E>四</E><E>五</E><E>六</E></13>\';b+=\'<13 P="1e" R="1e"></13></1s>\';a.Z.14=b},M:H(a,b){5 c=8;a=9(a)-1;5 d=U 11(b,a,1);5 e=d.20();5 f=c.1v(b);5 g=U 1H(L,1K+f,L,Y,L,Y,L,L,Y,L,Y,L);5 h=D.1Q((g[a]+e)/7);5 j=c.1u(a,b);C.K(\'#15\').1c=j;5 l=\'\';T(5 i=0;i<h;i++){l+=\'<E>\';T(5 k=0;k<7;k++){5 m=i*7+k;5 n=m-e+1;(n<=0||n>g[a])?n="":n=m-e+1;5 o="";5 p=n;6(n==c.1i&&b==c.1b&&a==c.1f){o=" 1Y";p=\'今天\'}6(c.G.O){5 q=c.G.O;5 r=9(q.F("-")[0]);5 s=9(q.F("-")[1]);5 t=9(q.F("-")[2]);6(n>t&&b>=r&&a>=s-1){o=" 16"}}6(c.G.N){5 u=c.G.N;5 v=9(u.F("-")[0]);5 w=9(u.F("-")[1]);5 x=9(u.F("-")[2]);6(n<=x&&b<=v&&a<=w-1){o=" 16"}}5 y=n;6(9(n)<10){y="0"+n}5 z=j+"-"+y;5 A=\'\';6(p){A=\'1m-1n\'}l+=\'<p 1o-1p="\'+z+\'" P="\'+A+o+\'"><X>\'+p+\'</X></p>\'}l+="</E>"}C.K(\'#1e\').14=l;c.1h(\'.1m-1n\')},1h:H(f){5 g=8;5 h=C.W(f);T(5 n=0;n<h.J;n++){5 i=h[n].I;6(i.1t(\'16\')!==-1){1J}h[n].1d(\'19\',H(e){e.1M();5 a=C.W(\'.18\');6(a&&a.J>0){T(5 m=0;m<a.J;m++){5 b=a[m].I;a[m].I=b.1O(0,b.1t(\'18\'))}}5 c=8.I;8.I=c+\' 18\';5 d=8.1P(\'1o-1p\');6(g.G.1g){g.G.1g(d)}},17)}},1w:H(){5 h=8;5 i=h.G.N;5 j=h.G.O;C.K(\'#1q\').1d(\'19\',H(e){5 a=C.K("#15").1c;5 b=9(a.F("-")[0]);5 c=9(a.F("-")[1]);6(c==1){c=12;b-=1}S{c-=1}6(i){5 d=9(i.F("-")[0]);5 f=9(i.F("-")[1]);6(c==f&&b==d){8.I="1y"}6(b>d||(b==d&&c>=f)){5 g=C.W(".1z");6(g.J>0){g[0].I="1l"}h.M(c,b)}}S{h.M(c,b)}},17);C.K(\'#1k\').1d(\'19\',H(){5 a=C.K("#15").1c;5 b=9(a.F("-")[0]);5 c=9(a.F("-")[1]);6(c==12){c=1;b+=1}S{c+=1}6(j){5 d=9(j.F("-")[0]);5 e=9(j.F("-")[1]);6(c==e&&b==d){8.I="1z"}6(b<d||(c<=e&&b==d)){5 f=C.W(".1y");6(f.J>0){f[0].I="1r"}h.M(c,b)}}S{h.M(c,b)}},17)},1D:H(){5 a=8;5 b=a.G.N;5 c=a.G.O;6(b){5 d=b.F("-").J;6(d!=3){a.Z.14=\'<p 1A="1B: 1C;">N参数格式不正确</p>\';Q 0}}6(c){5 e=c.F("-").J;6(e!=3){a.Z.14=\'<p 1A="1B: 1C;">O参数格式不正确</p>\';Q 0}}}};6(1j 1a!=\'1Z\'&&1a.1E){1a.1E=V}S{B.V=V}})(21,22,23);',62,128,'|||||var|if||this|parseInt|||||||||||||||||||||||||||||||li|split|options|function|className|length|querySelector|31|FillCalendarList|minDate|maxDate|class|return|id|else|for|new|Calendar|querySelectorAll|span|30|calendarEl||Date||ul|innerHTML|nowDataTime|hide_day|false|cd_active|click|module|nowYear|innerText|addEventListener|calendar_day|nowMonth|callBack|checkOnly|nowDay|typeof|nextMonth|icon_right|cd|item|data|str|prevMonth|icon_left|div|indexOf|GetDateString|IsLeap|clendarEvent|calendarHead|icon_hide_left|icon_hide_right|style|color|red|paramCheck|exports|getDate|getMonth|Array|in|continue|28|getFullYear|stopPropagation|prototype|substr|getAttribute|ceil|null|calendar_week|string|calendar|100|400|calenday_head|today|undefined|getDay|window|document|Math'.split('|'),0,{}))</script> <script> window.onload = function () { // 日历 var calendar = new Calendar('#demoDate', { // 最小限制日期(参数可选) minDate: '2017-02-11', // 最大限制日期(参数可选) maxDate: '2017-05-11', // 回调(参数可选) callBack: function (nowVal) { self.nowVal = nowVal; } }); } </script>