用 NodeJs 的的 Rest API 的话,对端收到了请求先返回响应然后不 return 的话继续执行函数接下去的代码:
app.get('/url', function(req, res) {
// Do something...
res.json(some_json_response);
// 继续干活
};
Python 正在查资料中,找了一会儿还没弄明白好一点的解决方案。。求助。。
app.get('/url', function(req, res) {
// Do something...
res.json(some_json_response);
// 继续干活
};
Python 正在查资料中,找了一会儿还没弄明白好一点的解决方案。。求助。。