$.post
2015-07-29 17:42
204 查看
$.post
url:发送请求地址。
data:待发送 Key/value 参数。
callback:发送成功时回调函数。
type:返回内容格式,xml, html, script, json, text, _default。
url:发送请求地址。
data:待发送 Key/value 参数。
callback:发送成功时回调函数。
type:返回内容格式,xml, html, script, json, text, _default。
$.post( "test.php", { "func": "getNameAndTime" }, function(data){ alert(data.name); // John console.log(data.time); // 2pm }, "json" );
$.post("test.php", { name: "John", time: "2pm" }, function(data){ process(data); }, "xml");
相关文章推荐
- memcache
- Window下memcached安装与测试步骤
- E2202 Required package 'VclJPG' not found
- Android学习之路
- oracle数据类型(3)
- createjs初学-所有的显示对象介绍(2)
- 根据文字算出文字所占区域大小(用于创建多个UILabel时可以用)(不知道这个方法的天猫程序员自从看到这个方法已经哭晕在厕所)
- 欢迎使用CSDN-markdown编辑器
- Contribute/Submit A QEMU Patch
- iOS开发——动画编程OC篇&(一)基本动画
- 解决git版本冲突不能push
- 类似体育彩功能
- 如何使用jQuery技术开发ios风格的页面导航菜单
- VM增加centos6.5磁盘容量
- Java基础学习总结(41)——JPA常用注解
- Java基础学习总结(41)——JPA常用注解
- Java基础学习总结(41)——JPA常用注解
- 行为准则
- Java类加载器
- JPA常用注解