Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wh-hujinyun opened this issue Jul 4, 2024 · 0 comments

Comments

@wh-hujinyun
Copy link

wh-hujinyun commented Jul 4, 2024

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;

@wh-hujinyun wh-hujinyun changed the title URLSearchParams对象的属性size无法获取参数条目总数,无返回值 The size attribute of the URLSearchParams object cannot obtain the total number of parameters. No value is returned. Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant