在java中用jquery实现ajax通信.docVIP

  • 2
  • 0
  • 约3.36千字
  • 约 4页
  • 2017-07-05 发布于河南
  • 举报
在java中用jquery实现ajax通信

在java中用jQuery实现Ajax通信 ? 1)? load()方式请求ajax,返回值在div中显示,载入远程html文件代码并插入到DOM中。 ajax_2.jsp: %@ page language=java pageEncoding=UTF-8% html head script type=text/javascript src=jquery-1.2.6-vsdoc-cn.js/script script type=text/javascript //jquery处理ajax请求 function doajax(){ //ajax请求的url地址 传递到后台的数组参数 后台返回来的结果 $(#testja).load(/ajaxTest/jquery-ajax/testajax.do,{param:456},function(responseText){ alert(responseText); }); } /script /head body a

文档评论(0)

1亿VIP精品文档

相关文档