Ajax POST MyUrl 404 (Not Found)
Ajax POST MyUrl 404 (Not Found)
我正在编写一些grails代码,每当ajax函数从控制器操作中获得响应时,我都会得到这个错误!
Ajax函数正在传递参数,控制器函数在返回后执行。我从浏览器开发工具得到了这个错误。
$.ajax({
url: urlMap.myUrl_url,
type: "POST",
dataType: 'JSON',
data: {
pId: pId,
stId: stId
},
success: function (data) {
$supplementaryHolder.html(data);
}
})
这是控制器的功能!
def deleteSupplementary = {
if (!modifyService.deletePlacement(params.long('pId'))) {
flash.error = g.message(code: 'student.delete.placement.failed')
}
return params.stId;
}
错误似乎在这一行
return params.stId;
将其更改为
render params.stId;
相关文章:
- JavaScript文件在IIS上返回404 Not Found
- react-css-module module not found
- grails3 jquery not found
- GeckoFX JSContext not found C#
- Marionette: childViewContainer was not found
- Js not found spring mvc
- Ajax POST MyUrl 404 (Not Found)
- 节点webkit中的Require('jquery ui')产生navigator not found错
- xmlhttp.send() returns 404 Not Found (Ajax)
- Socket.io.js not found (node.js + express + socket.io)
- Module not found: Error: Cannot resolve module 'fs'
- 状态码:404 Not Found (from cache) |使用AngularJS的混合型应用
- not found error: DOM exception 8
- Systemjs and tsc setup - *.ts.js 404 (Not Found) Error
- Angular2材质设计alpha.9-3有'404 not found'@angular /材料
- Laravel Routes/jQuery $.post() returning 404 Not Found
- http://localhost/undefined 404 (Not Found)
- /bin/sh not found -- spawnSync
- 节点路由器.delete函数返回404 Not Found
- Angular2 + ag-Grid无法加载ag-Grid -ng2/main.js (404 Not Found)