javascript - JS, how to append array in FormData? - Stack Overflow

admin2025-02-23  9

i hope append array in js FormData.

like this,

var fd = new FormData();
fd.append("key", new Array(["a","b","c"]));
console.log(fd.get("key"));

the result is,

a,b,c

result type is 'String'...

i want to parse "aa" array in java(JSONArray).

please help me.

i hope append array in js FormData.

like this,

var fd = new FormData();
fd.append("key", new Array(["a","b","c"]));
console.log(fd.get("key"));

the result is,

a,b,c

result type is 'String'...

i want to parse "aa" array in java(JSONArray).

please help me.

Share Improve this question asked Dec 12, 2018 at 2:27 gdkgdk 891 gold badge2 silver badges11 bronze badges 1
  • "the result is a,b,c"
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1740297155a128420.html

最新回复(0)