摘要
Node.js是单线程,采用无阻塞I/O和异步事件模式。在本文中,讨论Node.js的异步编程模式:标准回调和事件驱动编程模式。
Node.js is single threaded and uses non-blocking I/O and an asynchronous event-driven model. In this pa-per, we will discuss Node.js programming model ,standard, callback and event driven programming model.
作者
周安辉
ZHOU Anhui(Neijiang Vocational and Technical College,Neijiang 641100,china)
出处
《四川职业技术学院学报》
2018年第4期149-154,共6页
Journal of Sichuan Vocational and Technical College
关键词
首类函数
后续传递风格
标准回调
链式回调函数
事件驱动编程
first class function
continuation-passing style
standard callback
chain callback
event-driven programmings