react-native-url-polyfill icon indicating copy to clipboard operation
react-native-url-polyfill copied to clipboard

The sort () of the URLSearchParams object is not valid

Open wh-hujinyun opened this issue 1 year ago • 0 comments

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 avatar Jul 04 '24 11:07 wh-hujinyun