como usar o currentURL no javascript es6
January 04, 2020
Returns the current URL.
Use window.location.href
to get current URL.
const currentURL = () => window.location.href;
currentURL(); // 'https://google.com'
January 04, 2020
Returns the current URL.
Use window.location.href
to get current URL.
const currentURL = () => window.location.href;
currentURL(); // 'https://google.com'