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 sort () of the URLSearchParams object is not valid #471

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

The sort () of the URLSearchParams object is not valid #471

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

Comments

@wh-hujinyun
Copy link

wh-hujinyun commented Jul 4, 2024

const params = new URLSearchParams('query=abc&type=search&query=123');
params.sort();
let result = params.toString();
console.log('result: ' + params.toString());
The log result should be:query=abc&query=123&type=search;

The actual log result is as follows:result: query=abc&type=search&query=123;

@wh-hujinyun wh-hujinyun changed the title URLSearchParams对象的sort()排序无效 The sort () of the URLSearchParams object is not valid 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