buatkan saya sebuah function javascript dari kode di bawah ini await axiosgetiurlthenresponse = responserequestresresponseUrlcatcherror = consolelogerror
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));
原文地址: https://www.cveoy.top/t/topic/gG72 著作权归作者所有。请勿转载和采集!