jquery ajax demo
来源:互联网 发布:重生之一叶而知秋 编辑:程序博客网 时间:2024/06/02 04:47
一、页面
function sendForm(){$.ajax({type : "POST",url : "${base}/self/portTraffic/Com_autoRefresh.do",data : {showPortPicFlag:"0",portstr:"8360667",picType:"3"},dataType : "html",async : false,success : function(data) {$("#imagediv").html("<img src='"+data+"'/>");}});}
二、类
public void ajaxdemo(){//处理业务PrintWriter pw = getPwByText();pw.print("返回到页面的String");closePw(pw);}/** 处理返回类型为string的数据*/protected PrintWriter getPwByText() {HttpServletResponse response = ServletActionContext.getResponse();response.setContentType("text/plain");response.setCharacterEncoding("utf-8");try {PrintWriter pw = response.getWriter();return pw;} catch (IOException e) {e.printStackTrace();}return null;}protected final void closePw(PrintWriter pw) {pw.flush();pw.close();}
- jQuery Ajax 案例 Demo
- jquery ajax demo
- JQuery AJAX Demo
- jquery ajax 使用demo
- jQuery ajax getjson demo
- jQuery+Ajax+servlet简单demo
- Jquery ajax 提交表单Demo
- Jquery ajax 提交表单Demo
- Ajax MVC2 Wcf Jquery Linq Demo
- jquery autocomplete插件结合ajax使用demo
- Jquery+ajax+json+servlet原理和Demo
- Jquery+ajax+json+servlet原理和Demo
- Jquery+ajax+json+servlet原理和Demo
- jquery autocomplete插件结合ajax使用demo
- jquery autocomplete插件结合ajax使用demo
- JQUERY+ASP.NET的AJAX文件上传(含Demo)
- jQuery ajax调用本页面后台方法Demo
- jquery ajax php mysql 无刷新分页 demo
- 黑马程序员: 集合框架
- node.js JSON对象和string的相互转化
- VS2010开发QT步骤
- 异常:System.BadImageFormatException,未能加载正确的程序集XXX或其某一依赖项
- fedora18在登录界面只有一个用户时,gnome桌面去掉了注销按钮,可用以下方法显示。
- jquery ajax demo
- 试图从程序员到软件艺师(读《Java编程思想》有感)
- logcat命令详解
- 【web开发】spring+hibernate4支持中文排序
- 在Eclipse中创建WEB工程步骤
- HDU - Lowest Common Multiple Plus
- select(),fd_set,FD_SET,FD_CLR,FD_ZERO,FD_ISSET的用法
- ora-01031:insufficient privileges解决方法
- Ubuntu更新命令