我使用pg-promise,并尝试向用户模型中的数据库发出请求,以获取所有用户的数组,如下所示: let users// in debug mode data is my expected array return users;但是当我从控制器发出get请求时,它返回promisePromise { <pen
我使用Meteor和React,并尝试从第三方javascript函数返回数据目前,回调返回一个未定义的值,但几秒钟后,控制台日志将显示正确的数据// ON THE CLIENT
// callback function that returnsresponse = getDeviceId().then