안녕 모두 내가 가지고 내가 창에서 jQuery를 사용하여 HREF에서이를 얻을 필요가 내가 클릭 이벤트에 URL에서이 문자열UR1에서 특정 문자열을 가져 오는 방법은 무엇입니까?
http://localhost:60255/Roles/
을 얻어야한다이
http://localhost:60255/Roles/12/Users/
처럼 보이는 URL 난이 두 번 클릭이 경우
this is what i had been trying
var windowpathname = window.location.pathname; window.location.href = windowpathname + "Roles/" + RoleID + "/" + RoleName;
객체에서는 window.location의
http://localhost:60255/Roles/12/Rahul/Roles/14/Kishore/
왜 당신은 그냥 사용하지 않는이'HTTP를 시도 할 수 있습니다 : // 로컬 호스트 : 60255/역할 /' –
전 모든 클릭에 id 값을 바꿀 것입니다 – user1831498
@MohammadAdil 나는 내 질문을 편집 했었습니다. 한번 확인해 주시겠습니까 – user1831498