admin管理员组

文章数量:1026989

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"

    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"

      本文标签: javascriptJShow to append array in FormDataStack Overflow