我的问题非常简单,我有一个使用以下语法的react项目: const data = new FormData();data.append我的问题是: 有没有什么方法可以把这个附加内容改成一行或者像下面这样的语法?const data = new FormData([('token', this.props.token), ('origin', this.props.origin)])
file = _("file").files[0]; //This line is the issue, changed it around still gave null errors
var ajax = new XMLHttpRequest(); 我的HTML看起来像这样 <form下面这部分是我从昨天下午开始一直在切换的部分
我正在构建一个角形表单,用来上传一个文件,我有一个第三方API,我需要调用它,它接受多个部分的表单数据和文件作为blob。你能告诉我怎么做吗?我现在有这个密码?new FormData(); // this.customerFileService.uploadFile(formData.file?)blob now
文件/API
public
openPopup()-function的第一个参数是弹出窗口的内容。第二个参数是回调函数,它将绑定到提交按钮上的单击事件。问题是:如果回调函数有一些参数,它们就不会传递给eventHandler。在这个例子中,它是参数"formData": // put content inside the popup>", function