post请求参数过长浏览器报400错误

修改方法:

url = "${ctx}/roleController.do?updateAuthority";

$.post(url,{rolefunctions:node,roleId:roleId},function(result){
            if(result.success == true){
            hint(result.msg,1,0);
            } else {
            hint(result.msg,2,0);
            }
             });


注:参数不要写在url后面,单独拿出来写即可


           

猜你喜欢

转载自blog.csdn.net/g_blue_wind/article/details/78594767