NodeJs: 使用async函数时报TypeError错误
var sql = require('mssql');
const sqlConfig = {
user:'a',
password:'a',
server:'localhost',
database:'nodejs'
}
(async function(){
let pool = await sql.connect(sqlConfig);
let res = await sql.q...
原创
2020-02-19 13:05:46 ·
344 阅读 ·
0 评论