Home > @elux/react-taro > locationToUrl

locationToUrl() function

Location转换为Url

Signature:

export declare function locationToUrl({ url, pathname, search, hash, classname, searchQuery, hashQuery }: Partial<Location>, defClassname?: string): string;

Parameters

ParameterTypeDescription
{ url, pathname, search, hash, classname, searchQuery, hashQuery }Partial<Location>
defClassnamestring

Returns:

string