1:js请求:其中带过去的参数还有回调函数,参数最好加在回调函数后。不然容易出错
var script = document.createElement('script'),
body = document.getElementsByTagName('body');
script.src = 'http://localhost:8080/JSON/servlet/GetTSLongitude?callback=callbackfunction&DriverPhone='+r;
2:标准发出请求附带参数写法:
url:'http://localhost:8080/json/servlet/getxx?name='+Tname+"&age="+Tage