Node.js Manual & Documentationprocess.nextTick(callback) o process.umask([mask]) util 工具模块 o util.debug(string) o util.log(string) o util.inspect(object, showHidden=false, depth=2) o util.pump(readableStream, writableStream {'Content-Type': 'text/plain'}); response.end('Hello World\n'); }).listen(8124); console.log('Server running at http://127.0.0.1:8124/'); To run the server, put the code into a file called example Example: running node example.js from /Users/mjr 例如:在目录/Users/mjr 下运行 node example.js console.log(__filename); // /Users/mjr/example.js __dirname The dirname of the script being executed. 当前正在执行脚本所在的目录名。0 码力 | 153 页 | 1.21 MB | 1 年前3
高可用与一致性:构建强一致性分布式数据库 TiDB-沈泰宁to test? What is TiDB? Single Point Single Point of Failure Asynchronous Replication A = 1 B = 2 A = 1 Master Slave Asynchronous Replication A = 1 B = 2 A = 1 B = ? Master Slave Synchronous = 2 State Machine A = 1 B = 2 Log Raft Module A = 1 B = 2 State Machine A = 1 B = 2 Log Raft Module A = 1 B = 2 State Machine A = 1 B = 2 Log Raft Module •Leader election •Voting isolation/node failure tiggers election •Log replication •Leader handles client requests, append logs •Replicate logs to followers •Constraints •Quorum: log replication, leader election •Up to date:0 码力 | 45 页 | 4.63 MB | 1 年前3
electron中文教程
/jquery.min.js'); 3. $.get('file:///path/to/example.asar/file.txt', function(data) { 4. console.log(data); 5. }); 6. 有些场景,如:核查 asar 包的校验和,我们需要像读取“文件”那样读取 asar 包的内容(而不是当成虚拟文 件夹)。你可以使用内置的 'webdriverio') 20. .click('#btnG') 21. .getTitle().then(function(title) { 22. console.log('Title was: ' + title); 23. }) 24. .end(); 无需重新编译 Electron,只要把 app 的源码放到 Electron的资源目录 里就可直接开始测试了。 'Lorem Ipsum Dolor Sit Amet' 3. }); 4. 5. myNotification.onclick = function () { 6. console.log('Notification clicked') 7. } 尽管代码和用户体验在不同的操作系统中基本相同,但还是有一些差异。 在Windows 10上, 通知"可以工作". 在Windows0 码力 | 203 页 | 2.72 MB | 1 年前3
JavaScript Promise迷你书(中文版)}); } asyncFunction().then(function (value) { console.log(value); // => 'Async Hello world' }).catch(function (error) { console.log(error); }); new Promise构造器之后,会返回一个promise对象 <1>为promise对象用设置 方法的话,如下所示的代码也能完成相同的工作。 asyncFunction().then(function (value) { console.log(value); }, function (error) { console.log(error); }); JavaScript Promise 迷你书(中文版) 9 Promise的状态 我们已经大概了解了Promise的处 运行示例 var URL = "http://httpbin.org/get"; getURL(URL).then(function onFulfilled(value){ console.log(value); }).catch(function onRejected(error){ console.error(error); }); getURL 只有在通过XHR取得结果状态为200时才会调用0 码力 | 112 页 | 1010.02 KB | 1 年前3
Kotlin 1.9.10 官方文档 中文版
vel=ERROR . In this case, the compilation fails and you'll see all the errors in the compilation log. Use this option to examine the linkage issues more closely. If you face unexpected problems with sourceSets { jvmMain { } } } In this case, Kotlin reports a warning in the build log: w: Accessed 'source set jvmMain' without registering the jvm target: kotlin { jvm() /* corresponding Gradle task. This is the default. WARNING writes the information about changes in the warning log. NONE disables reporting. reportNewYarnLock , which reports about the recently created yarn.lock0 码力 | 3753 页 | 29.69 MB | 1 年前3
Kotlin 官方文档中文版 v1.9vel=ERROR . In this case, the compilation fails and you'll see all the errors in the compilation log. Use this option to examine the linkage issues more closely. If you face unexpected problems with sourceSets { jvmMain { } } } In this case, Kotlin reports a warning in the build log: w: Accessed 'source set jvmMain' without registering the jvm target: kotlin { jvm() /* corresponding Gradle task. This is the default. WARNING writes the information about changes in the warning log. NONE disables reporting. reportNewYarnLock , which reports about the recently created yarn.lock0 码力 | 2049 页 | 45.06 MB | 1 年前3
Typescript, Angular, 和移动端的跨平台开发Angular Change Detection ● NgZone - Creates an execution context where Angular monkey patches the asynchronous calls and emit onTurnDone event. ● ApplicationRef - Triggerred by onTurnDone and checks the someone subscribes to it. ● Angular Uses RxJs Observable for subscription based processing of asynchronous operations. Observable let observable = new Observable(observer => { const operation = fn((value Change Detection ● Default change detection complexity: O(n) ● OnPush Observable complexity: O(log(n)) Angular Libraries ● Forms - Validations and Two-way data binding ● Router ● Animations ● Material0 码力 | 60 页 | 1.05 MB | 1 年前3
httpd 2.4.25 中文文档"/server-status"> SetHandler server-status Require 127.0.0.1 access.log - GET /server-status 403 127.0.0.1 error.log - AH01797: client denied by server configuration: /var/www/html/server-status SetHandler server-status Order deny,allow Deny from all Allow From 127.0.0.1 access.log - GET /server-status 200 127.0.0.1 So even if mixing configuration is still possible, please try to MPM The Event MPM is no longer experimental but is now fully supported. Asynchronous support Better support for asynchronous read/write for supporting MPMs and platforms. Per-module and per-directory0 码力 | 2573 页 | 2.12 MB | 1 年前3
httpd 2.4.23 中文文档"/server-status"> SetHandler server-status Require 127.0.0.1 access.log - GET /server-status 403 127.0.0.1 error.log - AH01797: client denied by server configuration: /var/www/html/server-status SetHandler server-status Order deny,allow Deny from all Allow From 127.0.0.1 access.log - GET /server-status 200 127.0.0.1 So even if mixing configuration is still possible, please try to MPM The Event MPM is no longer experimental but is now fully supported. Asynchronous support Better support for asynchronous read/write for supporting MPMs and platforms. Per-module and per-directory0 码力 | 2559 页 | 2.11 MB | 1 年前3
httpd 2.4.20 中文文档MPM The Event MPM is no longer experimental but is now fully supported. Asynchronous support Better support for asynchronous read/write for supporting MPMs and platforms. Per-module and per-directory configured per module and per directory. New levels trace1 to trace8 have been added above the debug log level. Per-request configuration sections, , and sections can be used to set Lua language into httpd, for configuration and small business logic functions. (Experimental) mod_log_debug Allows the addition of customizable debug logging at different phases of the request processing 0 码力 | 2533 页 | 2.09 MB | 1 年前3
共 650 条
- 1
- 2
- 3
- 4
- 5
- 6
- 65













