现在我有这个代码 router.get('/export', function(req, res, next) { var postData, eventData, messageData, userData Posts.list().then(data=> { var jsonOutput=JSON.stringify(data) postData=jsonOutput //this doesnt work }) .catch(erro => res.status(500).send('error')) Events. 浏览43提...