javascript - 无法访问通过 ajax 补丁请求发送的表单数据
问题描述
$.ajax({
url: '/inventories/'+inventoryJavaScriptData.id,
type: 'PATCH',
data: data,
contentType: false,
cache: false,
processData: false,
success: (response) => {
console.log(response);
if (response.status == 'true') {
}else{
}
},
error: (errorResponse)=>{
$.notify('error! please try again' , 'error' );
}
})
解决方案
推荐阅读
- ajax - 在 React 中为更新的组件执行 API 请求的正确方法是什么?
- c# - C# WebApi 如何从 HttpPostedFile 获取完整的图像
- python - 在 Python 中将 JSON 转储字符串转换为浮点数
- php - 自定义输出 wp 列表类别
- ios - 实例成员 ...不能用于 ViewController 类型
- javascript - 仅显示 [object object],不使用子路径显示来自 api 端点的数据
- r - 为什么 R 中的 coalesce() 会为我返回额外的值?
- c# - 将 Icon 对象与 byte[] 相互转换会导致质量损失
- c# - 发布 ASP.NET Core MVC 2.1 项目时将文件 (geckodriver.exe) 复制到发布文件夹
- reactjs - 在反应中使用 jsonp 的 Flickr 公共 api