Method description:
Convert a parsed URL object into a formatted URL string.
Grammar:
Receive parameters:
urlObj represents a URL object, which can contain the following attributes: (see example)
href full path
protocolis Protocol (such as http://)
auth
hostname Hostnameport Port
host Host (host name port)
pathname ‘/’ can be understood as a directory
query parameter list
search query conditions (that is, the parameter list with “?” added)
hash Hash value
Example: