在webstorm中使用nodejs库的智能提示功能

webstorm中默认只是打开ecmascript的智能提示,如果需要使用nodejs作为js的引擎,请打开nodejs的智能提示功能,

File -> Settings… -> Languages&Frameworks -> Node.js and NPM 页

Code Assistatant启用node.js库的代码提示即可,如下图

在webstorm中使用nodejs库的智能提示功能