node. js authoritative Guide (3)-node. JS Basics

Source: Internet
Author: User

3.1 Console/19 in node. js
3.1.1 Console.log method/19
3.1.2 Console.error Method/20
3.1.3 Console.dir Method/21
3.1.4 Console.time Method and Console.timeend method/22
3.1.5 Console.trace Method/22
3.1.6 Console.assert Method/23
3.2 Global scope and global functions in node. js/23
3.2.1 Global scope/23 in node. js
3.2.2 settimeout function and cleartimeout function/25
3.2.3 setinterval function and clearinterval function/25
3.2.4 Timer Object Unref method and ref method/27
3.2.5 Global functions and objects related to modules/28
3.3 __filename variable with __dirname variable/33
3.3.1 __filename Variable/33
3.3.2 __dirname Variable/34
3.4 Event handling mechanism and event loop mechanism/34
3.4.1 Eventemitter class/35
3.4.2 Various methods of the Eventemitter class/35
3.4.3 Gets the number of event handler functions for the specified event/41
3.4.4 events owned by the Eventemitter class itself/42
3.4.5 Event ring Mechanism/44
3.5 using the debugger in node. JS/45
3.5.1 using the debugger in a command-line window/45
3.5.2 observing the execution result of a variable value or an expression/48
3.5.3 Set and cancel breakpoints/49
3.5.4 Other Utility commands available in the debugger/50
3.5.5 using the Node-inspector Debug Tool/54
3.6 Summary/55

node. js authoritative Guide (3)-node. JS Basics

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.