fetch('某一个链接', { method: 'POST', body: mpbody }).then(response=>{hash=response.json().Key;console.log('hashinfunc='+hash)}).catch(()=>console.log('catch'));
console.log('hash='+hash);
这个链接之前的fetch就上传上去了,但是这里输出的hash永远是undefined,输出了一下hashinfunc结果没输出,catch也没有