这是一个标准的ajax请求:

 $.ajax({
type:"post",
url:basePath+"/resourcePush/operationLog",
async:false,
data: JSON.stringify(json),
contentType : "application/json;charsetset=UTF-8",
dataType:"json",
success: function(data){ },
error:function () { }
});

其中dataType是描述springMVCf返回的参数;

contentType是描述传递的参数,

如果默认不写的话,则SpringMVC对应注解是requestParam

如果是其它指定的,比如

contentType : 'application/json;charset=UTF-8',

contentType : 'text/html;charset=UTF-8',

则SpringMVC对应注解是requestBody

async:false,是同步

async:true,是异步

最新文章

  1. WPF学习之路(十一)布局(续)
  2. PL/SQL Block Structure
  3. 如何利用java得到当前的时间和前一天的时间
  4. 十九、【.Net开源】EFW框架核心类库之WCF控制器
  5. C#通过ODBC查询HANA数据库数据
  6. [CareerCup] 11.1 Merge Arrays 合并数组
  7. java.lang.NoClassDefFoundError: com/sun/mail/util/BEncoderStream
  8. 禁止使用finalize方法
  9. OAF_架构MVC系列3 - View的概述(概念)
  10. CPLD VS FPGA
  11. Qt之等待提示框(QTimer)
  12. js自动判断浏览器类型跳转到手机版
  13. CF Rook, Bishop and King
  14. 自定义Dictionary支持线程安全
  15. Cocos2d-x 3.2 Lua演示样例 XMLHttpRequestTest(Http网络请求)
  16. 《JAVA并发编程实战》示例程序 第三章
  17. python学习笔记3-列表
  18. Gluon Datasets and DataLoader
  19. combox的基本应用
  20. Manifest File

热门文章

  1. 为什么要用Android Studio?
  2. linux系统文件属性详解
  3. C#中不同格式数据校验的正则表达式
  4. Partial Functions(偏函数)
  5. Sprig 面试中 问及 DI,IOC, AOP
  6. Spring AOP 整理
  7. pageadmin去掉xxx
  8. UVa 11324 The Largest Clique (强连通分量+DP)
  9. CoderForces 518D Ilya and Escalator (期望DP)
  10. HTTP Debugger Pro使用教程