首页 > 解决方案 > 无法访问通过 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'  );
    }
})


标签: javascriptajaxlaravelpatch

解决方案


推荐阅读