阅读背景:

NodeJS是异步的,我的代码不按我期望的顺序运行

来源:互联网 
  postRegistrationHandler: function (account, req, res, next) {
    console.log('postRegistrationHandler activated');
    account.getCustomData(function(err, data) {
      if (err) {
        console.log(err.toString, "error string");
        return next(err);
      } else {
        data.mongo_id = userCreationCtrl(account);
        data.save();
        next();
      }
    });
  },
  postRegistrationHandler: function (account, r



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: