//引入promise
if(!Promise){
var Promise = require("bluebird");
// Configure
Promise.config({
longStackTraces: true,
warnings: true // note, run node with --trace-warnings to see full stack traces for warnings
})
}
转载于:https://www.cnblogs.com/windseek/p/7885072.html