fetch

来源:互联网 发布:网络漏洞赚钱判刑吗 编辑:程序博客网 时间:2024/06/15 19:03
async function fetch2() {    try {        let res = await fetch(url, options)        console.log(res)        let data = await res.json()        console.log(data)    } catch (e) {        console.log('error', e)    }}