Use JS to extract the domain name (domains) in the URL, with the split () function on it.
Because a correct URL must be http://or https://, domain, path/parameter composition, so you can use split to/to divide the group, take the 3rd part is the
Absolute path URL: use the complete URL to point to the specified webpage.Relative path URL: use an automatic URL to point to a specified webpage.For exampleWww.9lolo.com/page1/index.htmlAbsolute path/Page1/index.html is the relative path.For
1. understanding of basic conceptsAbsolute path: the absolute path is the real path of the file or directory on your home page on the hard disk (URL and physical path), for example:C: XYZ est.txt represents the absolute path of the test.txt file.
One, url and URI definitions:
1.URL is written in the English language of the global resource Locator, and the address you enter in Internet Explorer is the URL. For example: NetEase http://www.163.com is a URL.2.URI is every resource available on
1. Understanding of Basic concepts Absolute path: Absolute path is the true path of the file or directory on your home page on your hard disk, (URL and physical path) For example: C:/xyz/est.txt represents the absolute path of the Test.txt file.
One, URL and URI definitions :1.URLis the global resource Locator written in English, you usually surf the Internet atIEThe address entered in the browser isURL. For example: NetEaseHttp://www.163.com is aURL. 2.URIis aWebeach of the resources
What are "absolute URL" and "relative URL "?-Absolute path URL: use the complete URL to point to the specified webpage.-Relative path URL: use an automatic URL to point to a specified webpage.For example, for the specified network
Excerpt from: https://www.cnblogs.com/wangdahai/p/6221399.htmlhave been modified.First, JS get the current domain name of 2 waysMethod Onevar domain = Document.domain;Method Twovar domain = Window.location.host;Note: Because the current domain name
1. Understanding of Basic Concepts
Absolute path: Absolute path is the real path of the file or directory on your home page on your hard disk, (URL and physical path) such as:C:\xyz\test.txt represents the absolute path of the Test.txt file. Http://
Spring is relative to the bin, or Web-inf, when reading the configuration file;"Applicationcontext.xml" is to find bin or Web-inf and sub-folder files;"/res/applicationcontext.xml" is the file that must be bin or the Res folder under the Web-inf
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.