这是js代码:
这是Controller代码:
到底是什么原因呢?请各位大神帮帮忙。
这是js代码:
这是Controller代码:
到底是什么原因呢?请各位大神帮帮忙。
你get请求啊,ajax send formdata没用,会自动忽略,get请求数据要放到在URL参数后面
xhr.open('get','/Assess/h1?xm='+encodeURIComponent(xm)+'&nl='+encodeURIComponent(nl)+'&bj='+encodeURIComponent(bj));
send发送数据需要post请求xhr.open('post','/Assess/h1');