Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var url = document.createElement("a");
- url.href = "http://localhost:8100/#/main/friendlist_detail/4";
- var hash = url.hash.split('/');
- hash.shift();
- console.log(hash);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement