This file contains 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-tap-highlight-color:rgba(255,255,255,0) |
This file contains 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
a, img { | |
-webkit-touch-callout: none; /* 禁止长按链接与图片弹出菜单 */ | |
} | |
html, body { | |
-webkit-user-select: none; /* 禁止选中文本(如无文本选中需求,此为必选项) */ | |
user-select: none; | |
-webkit-tap-highlight-color: rgba(0,0,0,0); | |
} |
This file contains 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
# OS generated files # | |
###################### | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
ehthumbs.db | |
Thumbs.db |
This file contains 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
img { | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-o-user-select: none; | |
user-select: none; | |
} |
This file contains 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
<meta name="viewport" content="minimal-ui"> | |
<!-- | |
Just say goodbye to minimal-ui (for now) | |
http://stackoverflow.com/questions/24889100/ios-8-removed-minimal-ui-viewport-property-are-there-other-soft-fullscreen | |
--> |
This file contains 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
/<%([^%>]+)?%>/g; // 匹配<%,%>之间内容 |
This file contains 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
/** | |
* Check if object is part of the DOM | |
* @constructor | |
* @param {Object} obj element to check | |
*/ | |
function isDOMElement(obj) { | |
return obj && typeof window !== 'undefined' && (obj === window || obj.nodeType); | |
} | |
/** |
This file contains 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
// UC-U3内核JavaScript专用API | |
// (经测试,官方文档给出的API很多也不能使用,下面只列出测试能用的) | |
// 1. 关闭默认手势 | |
// 用法: | |
navigator.control.gesture(false); | |
// 推荐写法: | |
try { | |
navigator.control.gesture(false); | |
} catch (e) { | |
} |
This file contains 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
/** | |
* 求FebonacciSequence数列 | |
*/ | |
import java.util.Scanner; | |
public class FibonacciSequenceSum { | |
public static void main(String[] args) { | |
long sum; | |
while (true) { |
This file contains 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
isArray = ('isArray' in Array) ? Array.isArray : function(value) { | |
return Object.prototype.toString.call(value) === '[object Array]'; | |
} |