当前位置:Gxlcms > JavaScript > 『jQuery』取指定url格式及分割函数应用_jquery

『jQuery』取指定url格式及分割函数应用_jquery

时间:2021-07-01 10:21:17 帮助过:3人阅读

代码如下:

var arr=location.href.split('/').pop().split('.');
alert(arr[0]); //Parent
alert(arr[1]); //Child

人气教程排行