我有很多字符串:
var a = ['one','two'];
var b = ['three','four'];
var c = ['five'];
var d = ['six','seven','eight'];
var e = ['nine','ten','eleven'];
a_str = JSON.stringify(a);
b_str = JSON.stringify(b);
c_str = JSON.stringify(c);
d_str = JSON.stringify(d);
e_str = JSON.stringify(e);
console.log(a_str);
从检查>控制台,我得到:
["one","two"]
> typeof(a)
<- "object"
>
我如何使用AJAX将这些变量传递给后端(python / Flask)?