为了从我的数据库中删除某些内容,我必须从我的 ExtJs 脚本中执行 POST:
Ext.Ajax.request({
url: 'deleteRole.html',
method: 'POST',
headers: {'Content-Type': 'text/html'},
waitTitle: 'Connecting',
waitMsg: 'Sending data...',
params: {
"rolename" : rolename
},
scope:this,
success: received,
failure: function(){console.log('failure');}
});
发送帖子时,我可以在萤火虫中看到字体中的角色名,但看不到参数。我想向您展示另一篇与用户注册相关的帖子(使用 spring:form 制作)。如果我检查帖子,我可以看到以下内容:
(来源:subirimagenes.com)
我可以使用@RequestParam 在我的控制器中获取参数。
但是在我有问题的帖子中,我看不到参数部分,我只能看到 Font(Fuente) 部分:
(来源:subirimagenes.com)
结果,我的弹簧控制器没有检测到任何参数。我的帖子有问题吗?
谢谢