Home >Web Front-end >JS Tutorial >'jQuery' takes the specified url format and splits the function application_jquery

'jQuery' takes the specified url format and splits the function application_jquery

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 17:35:571263browse
Copy code The code is as follows:

var arr=location.href.split('/').pop ().split('.');
alert(arr[0]); //Parent
alert(arr[1]); //Child
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn