使用bluebird解决promise兼容性问题
//引入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
})
}
学而不思则罔,思而不结则殆,结而不看,一事无成