function ajax() { $.post("ajaxServlet",{username:"小达"}, function (data) { alert("服务器返回的数据"+data) }) }