vtils

Home > mp > useSceneParams

useSceneParams() function

获取场景参数。

Signature:

export declare function useSceneParams<T extends Record<any, any> = Record<any, any>>(parser?: GetSceneParamsParser<T>): T;

Parameters

Parameter Type Description
parser GetSceneParamsParser<T> (Optional) 解析器

Returns:

T