摘要:
一、var url=document.location;url ="www.abc.com/sports/def.aspx";var r =/\/(\w+)\.aspx/;alert(url.match(r)[1]);alert(r.exec(url)[1]);二、var url = document.locationurl = " http://localhost:8080/Customer/index?token=ghfghfghfghfgh&mediaUserID=120122&redirect_url=www.wwwghgh.com&quo 阅读全文