『jq』取指定url格式及分割函数应用 2020-02-16 分类:jQuery 标签Tags:jquery,指定,url,格式,分割,函数,应用,实现,代码,如下,var,arr,location,href,split,pop,alert
实现代码如下: var arr=location.href.split('/').pop().split('.'); alert(arr[0]); //Parent alert(arr[1]); //Child 以上就是【『jq』取指定url格式及分割函数应用】的全部内容了,欢迎留言评论进行交流!