var formData = new FormData($("#form", iframeWindow.document)[0]);
var json = {a: 1,b:2,c:3};
Object.keys(json).forEach(key => {
formData.append("json["+ key +"]", json[key]);
})
var formData = new FormData($("#form", iframeWindow.document)[0]);
var json = {a: 1,b:2,c:3};
Object.keys(json).forEach(key => {
formData.append("json["+ key +"]", json[key]);
})
本文标题:FormData append json对象
本文链接:https://www.haomeiwen.com/subject/crutlktx.html
网友评论