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 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;
The text was updated successfully, but these errors were encountered:
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
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;
The text was updated successfully, but these errors were encountered: