[TOC]
|-- demo/
|-- abc/
|-- MediatorNames
|-- NotificationNames
|-- ProxyNames
| <img onclick="this.src=('/captcha/07ibflV5vu3Rtp8.png?reload='+(new Date()).getTime())" class="captcha-img" | |
| src="/captcha/07ibflV5vu3Rtp8.png"> |
| // 数组存储对象和“集合”存储对象的区别 | |
| var Greeting = {}; | |
| Greeting.lang = []; | |
| Greeting.lang["zh"] = {"hello": "你好!"}; | |
| Greeting.lang["en"] = {"hello": "Hello!"}; | |
| var Greeting1 = { | |
| lang: { | |
| "zh": {"hello": "你好!"}, | |
| "en": {"hello": "Hello!"} |
| !0 || (function() { | |
| console.log("run0"); | |
| })(); | |
| !1 || (function() { | |
| console.log("run1"); | |
| })(); | |
| !0 && (function() { | |
| console.log("run2"); | |
| })(); | |
| !1 && (function() { |
| // Function to download data to a file | |
| function download(data, filename, type) { | |
| var a = document.createElement("a"), file = new Blob([data], {type: type}); | |
| if (window.navigator.msSaveOrOpenBlob) { // IE10+ | |
| window.navigator.msSaveOrOpenBlob(file, filename); | |
| } else { // Others | |
| var url = URL.createObjectURL(file); | |
| a.href = url; | |
| a.download = filename; | |
| a.click(); |
| // http://stackoverflow.com/a/42459319/5631625 | |
| function create(text, name, type) { | |
| var dlbtn = document.createElement("a"); | |
| var file = new Blob([text], {type: type}); | |
| dlbtn.href = URL.createObjectURL(file); | |
| dlbtn.download = name; | |
| dlbtn.click(); | |
| } |
| // Extends the static property from the super class | |
| public class TestStaticProperty extends Foo { | |
| public static void main(String[] args) { | |
| System.out.println(TestStaticProperty.a); | |
| } | |
| } | |
| class Foo { | |
| static String a = "1"; | |
| } |
| (function () { | |
| var tips = '<div role="alert">你的浏览器实在<strong>太太太太太太旧了</strong>,放学别走,' + | |
| '升级完浏览器再说 <a target="_blank" href="http://browsehappy.com">立即升级</a></div>'; | |
| var isIE = function (ver) { | |
| var b = document.createElement('b'); | |
| b.innerHTML = '<!--[if IE ' + ver + ']><i></i><![endif]-->'; | |
| return b.getElementsByTagName('i').length === 1; | |
| }; | |
| // "Sublime Text 3/Packages/User/Package Control.sublime-settings" | |
| { | |
| "bootstrapped": true, | |
| "in_process_packages": | |
| [ | |
| ], | |
| "installed_packages": | |
| [ | |
| "Blade Snippets", | |
| "CSScomb", |
| { | |
| "patterns": { | |
| "TODO": "TODO[\\s]*?:[\\s]*(?P<todo>.*)$", | |
| "FIXME": "FIX ?ME[\\s]*?:[\\s]*(?P<fixme>.*)$", | |
| }, | |
| "patterns_weight": { | |
| "FIXME": 1, | |
| "TODO": 2 | |
| }, | |
| "exclude_folders": [ |