用servlet中out.print(s);在界面上的数据获取的代码为
$.ajax({
type: "post",
url: "/newspider/test.do",
//data: "name=" + $("#Text1").val(),
success: function (result) {
alert(result);
}
});