This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Array.slice.call(arguments); | |
| [].slice.call(arguments); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //特性检测 | |
| if (window.XMLHttpRequest) { | |
| new XMLHttpRequest(); | |
| } | |
| //特性推断:A存在则判断B也存在 | |
| if (document.getElementsByTagName) { | |
| element = document.getElementById(id); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| &:before { | |
| //set position | |
| top: rem(-14px); | |
| left: rem(20px); | |
| //set size | |
| border-width: rem(8px); | |
| //set color | |
| border-bottom-color: #FF0000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| process.on('unhandledRejection', function (err, p) { | |
| console.error(err.stack) | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @mixin verticalCenterAll() { | |
| content: ''; | |
| display: inline-block; | |
| vertical-align: middle; | |
| } | |
| .centerAll::before { | |
| @include verticalCenterAll(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @mixin maskEffect($opacity) { | |
| @include size(100%); | |
| @include position(absolute, 0 0); | |
| content: ''; | |
| background: rgba(0, 0, 0, $opacity); | |
| display: inline-block; | |
| } | |
| .maskover::after { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @mixin textOverflow($lineNum) { | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| display: -webkit-box; | |
| -webkit-line-clamp: $lineNum; | |
| -webkit-box-orient: vertical; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .line_1px:after{ | |
| height: 1px; | |
| content: ''; | |
| background: #E6EAF2; | |
| width: 100%; | |
| display: block; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exports.holiday_data = { | |
| // year: holidays | |
| 0: 0, | |
| 1: 15, | |
| 'other': 3 | |
| }; |
NewerOlder