I have a string like this:
(我有一个像这样的字符串:)
abc=foo&def=%5Basf%5D&xyz=5
How can I convert it into a JavaScript object like this?
(如何将其转换为这样的JavaScript对象?)
{
abc: 'foo',
def: '[asf]',
xyz: 5
}
ask by Alex translate from so