Previous node-promise promise是一个构造函数 promise容器存放了一个异步任务pending,有两种状态,resolved和rejected 封装Promise readFile function pReadFile(filePath) { ret 2019-01-20 node promise Next node-mysql 使用node操作MySQL安装npm install --save mysql var mysql = require('mysql'); var connection = mysql.createConnection({ h 2019-01-20 node mysql