y389278443z

Results 3 comments of y389278443z

```javascript function equal(obj1, obj2) { if (obj1 === obj2) return true; if (Object.keys(obj1).length !== Object.keys(obj2).length) return false; for (let i in obj1) { if (!obj2[i]) return false; if (Array.isArray(obj1[i]) &&...

ie9都支持 matches了, 不知道为啥上面很多还要写一个matches。 ```js if (!Element.prototype.closest) { Element.prototype.closest = function (s) { var el = this; if (!document.documentElement.contains(el)) return null; do { if (el.matches(s)) return el; el = el.parentNode; }...

[在线预览](https://y389278443z.github.io/test/test.html) ```css html,body{font-size:14px;margin:0;} ul{padding:0;margin:0;list-style: none;} li{margin-bottom: 20px;} .clear:after{content: '';display: block;clear:both;} .img100{width:100%;height:100%;border-radius: 50%;} .msg-list{padding:0 5%; border:1px solid #eee;max-width:750px;min-width:375px;margin: 0 auto;box-sizing: border-box;} .left-img{width: 20%;float:left;} .right .left-img{float:right;} .right-info{width:55%;padding:0 5%;float:left;} .right .right-info{float:right;text-align: right;color:#fff;} .right-info>p{margin:0...