axiosã§getå¦çãpostå¦çãããæã«basicèªè¨¼ãè¨å®ããããã¨ãã§ãã¾ãã axios.get('/user?ID=12345', { auth: { username: abcd password: 1234 } }) .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); }); ã®ããã«è¨å®ããäºãå¯è½ã§ãããgetå¦çãpostå¦çã®æ°ãå¢ãããã³ã«åãè¨å®ãããã®ã¯ã¹ãã¼ããããããã¾ããã ã®ã§ä¸è¨ã®ããã«å¤æ°ã«å ¥ãã¦ããã¦ãrequire or importãã¦ããaxiosã«è¨å®ããã¦ãããã¨ããã©ã«ãã§authè¨å®ãããã¦ããç¶æ ã§axiosã使ãäºãåºæ¥ã¾ãã const axios = axios.create(
{{#tags}}- {{label}}
{{/tags}}