简体中文
外观
URLSearchParams
size
size 属性是列表里参数的个数。
数,个数。
TypeError
a=1&b=2&a=3
const q = new URLSearchParams('a=1&b=2&a=3'); console.log(q.size);
结果:输出 3。
3
和 Web 相同。
getAll()