我正在构建一个应用程序,用户可以上传食物图片,并且API会响应其成分。在我的onButtonSubmit上,如果我写一个要测试的网址,它就可以工作。但是,如果我使用{this.state.input},则会向我发送400错误请求。
可能与我的FoodRecognition.JS(独立文件)相关。如果写
有人可以帮我吗?下面的代码。
预先感谢
(function (){
'use strict';
var $q = jQuery.noConflict();
var links = $q("tr.ng-scope.odd.danger a");
for( var j=links.length; j--; ) {
window.open(links[j].href);
}
})();
FoodRecognition.js
window.open(links[j].href, "_blank")