红糖糍粑
Ajax 动态无刷新技术 当向后台servlet 传输数据是 做相关接受 做完处理之后然后用response 吧你需要的想前台传输的数据写出去 这里 可以写xml text html 也可以写json 然后 ajax 传输的方法后回调函数 自己用数据接受一下就好了示例代码:12345678910$(function () { $("#button").click(function( $.post("/login",//传输地址 接受地址 {name:$("#name").val(),password:$("#password").val()},//传递参数 function(data){//回调函数 console.debug(data); } }) })})