Javascript can be used to obtain the current domain name, Url, relative path and parameters separately. The so-called separate attack, that is, the domain name does not include the path and parameters of the web page file, the parameters do not include the domain name and the web file path, which are respectively introduced below.