You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
The text was updated successfully, but these errors were encountered:
wh-hujinyun
changed the title
URLSearchParams对象的sort()排序无效
The sort () of the URLSearchParams object is not valid
Jul 12, 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;
The text was updated successfully, but these errors were encountered: