function getDataUrl(url) { return axios.get(url) .then(response => response.request.res.responseUrl) .catch(error => console.log(error)); }

// Contoh penggunaan getDataUrl("https://google.com").then(url => console.log(url));

buatkan saya sebuah function javascript dari kode di bawah ini await axiosgetiurlthenresponse = responserequestresresponseUrlcatcherror = consolelogerror

原文地址: https://www.cveoy.top/t/topic/gG72 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录