Answers for "how to get uri segment in js"

0

how to get uri segment in js

const pathArray = window.location.pathname.split("/");
const segment_1 = pathArray[1];
Posted by: Guest on April-05-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language