0
所以我有一个在我的JavaScript发布到我的烧瓶后端的ajax函数。烧瓶 - 我可以在AJAX调用中执行另一个请求吗?
我可以成功调用/ another_ajax_url吗?
@app.route('/myroute', methods=['POST, GET'])
def test():
a = 2 + 2
requests.post('/another_ajax_url', data = a)
#do the other stuff and return to /myroute
b = 3 + 3
return jsonify(b=b)
芹菜看起来像我实际需要的东西。谢谢。 –