$.ajax({ type : 'post', url : '${basePath}auth/authRoleFunction/delAuthRoleFunctionMapsByIds', traditional: true, data : { ids : authRoleFunctionMapIds }, dataType : 'json', success : function(data) { var message = ""; if (data == "success") { message = "解除綁定成功!"; $('#dg').datagrid('reload'); } else { message = "請先選擇要解除綁定的的功能 !"; } $.messager.alert('提示', message, 'info'); } });
只須要加上這給配置 ajax
traditional: true json