📜  常量 axios = 要求('axios').default; - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:40.538000             🧑  作者: Mango

代码示例1
import axios from "axios";
axios.get('https://github.com/ircbloqcc/ircbloq-releases/releases/latest/download/version.json');
    
    .then((response) => {
    console.log(response.data);
    console.log(response.status);
    console.log(response.statusText);
    console.log(response.headers);
    console.log(response.config);
    });