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
| this.context = [].concat.apply([], selector); | |
| //selector是个伪数组(元素列表),这样转换成数组不可靠,三星大部分机器会报错。 |
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
| .text{ | |
| -webkit-line-clamp: 4; | |
| -webkit-box-orient: vertical; | |
| display: -webkit-box; | |
| } |
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
| var a = 1; | |
| (function () { | |
| var a = 3; | |
| (new Function('console.log(a)'))(); // 1 | |
| })(); |
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
| <ul class='thumbnails'> | |
| <li> | |
| <a class='thumbnail'> | |
| <img src='http://ww1.sinaimg.cn/mw690/a1d3feabjw1e57a6ito1gj205a02sq37.jpg' /> | |
| </a> | |
| </li> | |
| </ul> |
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
| var b = '{comment}'.replace((new RegExp('({comment})','g')), '$123'); | |
| console.log(b); //{comment}23 | |
| var b = '{comment}'.replace((new RegExp('{comment}','g')), '$123'); | |
| console.log(b); //$123 |
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
| <!doctype html> | |
| <html> | |
| <body> | |
| <div id="nav"></div> | |
| </body> | |
| <script type="text/javascript"> | |
| alert(window.nav); | |
| /** | |
| * 经测试 |
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
| @-moz-document url-prefix(){ | |
| #feed_live .name{ | |
| position: relative; | |
| top: 6px; | |
| } | |
| } |
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
| var c = 1; | |
| delete c; //false | |
| d = 1; | |
| delete d; //true | |
| window.e = 1; | |
| delete e; //true |
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
| html { | |
| filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); | |
| -webkit-filter: grayscale(100%); | |
| } |
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
| -webkit-appearance: none; |