JS Query String to Object
Convert “a=1&b=2” into {a:”1”, b:”2”}.
function str2Obj(str){ |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Comments
Convert “a=1&b=2” into {a:”1”, b:”2”}.
function str2Obj(str){ |