Whether it is front-end development or back-end design, many times developers need to obtain relevant information about the current or target URL. This ready-made built-in object property can be called directly (the following is the reference code to get the current page)