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

webstorm中默认只是打开ecmascript的智能提示,如果需要使用nodejs作为js的引擎,请打开nodejs的智能提示功能,File -> Settings… -> Languages&Frameworks -> Node.js and NPM ->勾选Coding assistance for Node.js,如图:
在webstorm中使用nodejs库的智能提示功能