Why is there only the second half of his link like the one above?
instead of a complete hyperlink?
URL is divided into absolute address and relative address. What the landlord sees now is the relative address.
assume that the domain name of the website is www.1234.com
. If there is such a href
in the page, then its complete hyperlink is www.1234.com/viewthread.php?tid=79118
. Click on this link and request this address to the backend.
relative path, if the protocol header and domain name are not given, it will be automatically completed according to the current protocol header and domain name; if there is a < base >
tag, it will be completed according to the tag; or if it appears, such as .. /
, it will be located to the parent directory of the current file URI location, and then complete the corresponding URI.
actually this is mainly
Previous: Go language enables go module
Next: How does JS achieve traversal progress display without increasing browser IDLE time?
recently, I want to use node to write a crawler tool. On the one hand, I want to nodejs, and on the other hand, I think crawler is a good example to improve the front-end knowledge. But I don t have much work experience, and I don t know or use crawle...