정규식 문서를 읽었지만 내가 원하는 방법을 이해하지 못합니다.jQuery regex from url
이 난 후 "108728110699"인덱스 = 후 번호를 가지고 싶어이 재치 정규식처럼 http://testhermes.tumblr.com/post/108728110699/hermes-instagram-photo-sit-back-and-relax?index=1
urle이 "1"
당신은 제발 도움이 될 수 있습니다. 감사합니다.
정규식 문서를 읽었지만 내가 원하는 방법을 이해하지 못합니다.jQuery regex from url
이 난 후 "108728110699"인덱스 = 후 번호를 가지고 싶어이 재치 정규식처럼 http://testhermes.tumblr.com/post/108728110699/hermes-instagram-photo-sit-back-and-relax?index=1
urle이 "1"
당신은 제발 도움이 될 수 있습니다. 감사합니다.
var url = "http://testhermes.tumblr.com/post/108728110699/hermes-instagram-photo-sit-back-and-relax?index=1";
url = url.match(/\d+/g);
alert(url[0]); //108728110699
alert(url[1]); //1
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
window.location.search는 당신에게 쿼리 문자열 – atmd