Home > Article > Web Front-end > Extension example of using js to get url parameters_javascript skills
Recently, the website was revised and I found that the advertisements on the website are all direct URLs. If you redirect it, it will be better for the full-time users of this website
An html page is needed to pass the parameters, so I used a js code to get the url parameters, just a funciton
Referencehttp://img.jb51.net/url.htm?url=http://www.baidu.com