我有一個非常簡單明了的代碼:py:@blueprint.route('/Ajax', methods=['GET', 'POST']) def Ajax(): Graph1 = [10,10,10,10,10] return jsonify(Graph1)JSfetch('/Ajax').then(function (response) { theData = Object.values(response); console.log(theData); return theData; })但我得到:我不知道為什么是這個原因。
JS fetch 從 Flask 返回 0 數組長度
拉莫斯之舞
2023-08-18 13:56:09