我有一个非常简单明了的代码:
py:
@blueprint.route('/Ajax', methods=['GET', 'POST'])
def Ajax():
Graph1 = [10,10,10,10,10]
return jsonify(Graph1)
JS
fetch('/Ajax')
.then(function (response) {
theData = Object.values(response);
console.log(theData);
return theData;
})
但我得到:
我不知道为什么是这个原因。
牛魔王的故事
相关分类