Skip to content

The size attribute of the URLSearchParams object cannot obtain the total number of parameters. No value is returned. #472

Open
@wh-hujinyun

Description

@wh-hujinyun

const searchParams = new URLSearchParams('abc=456&rn=ReactNative&abc=javascript');
console.log('size: ' + searchParams .size);
The log result should be as follows:size: 3;

The actual log result is as follows:size: undefined;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions