这种畸形的请求语法,一般是参数传了,但是数据类型有问题,或者获取数据的方式有问题
顺带再加一份点击事件的传值代码
1 function Search() { 2 3 var project=$("#Project option:selected").val(); //select标签获取选定值 4 5 var options=$("#Province option:selected").val(); 6 7 var Grade= ($ ("input[name='Grade']").val()); //input标签获取输入值 8 9 location.href="/toSearchColleges.action?&Project="+project.toString() /*保证获取到的值的类型为String类型*/+"&Province=" + options.toString() +"&Grade="+ Grade*1/*保证获取到的值为int类型*/; 10 11 }
参考:https://blog.csdn.net/weixin_43761536/article/details/104664367