Ajax
来源:互联网 发布:mac上怎么卸载软件 编辑:程序博客网 时间:2024/05/22 06:25
一 jq中的方法
1
$.post(url,data,function (result) { console.log(result) })
2 其实
$.ajax({ type:"put", // 可以使put delete get post url:"", async:true, data: { dataName: dataContent}, success:function (result) { console.log(result); }});
这个async是默认为 true ,表示所有的请求为异步请求 。如果需要发送同步请求,请将此选项设置为false。注意,同步请求将锁住浏览器,用户其他操作必须等待请求完成才可以执行。
data 是发送到服务器的数据 ,要求为Object或String类型的参数
0 0
- Ajax
- Ajax
- AJAX
- AJAX
- AJAX
- AJAX
- AJAX
- ajax
- ajax
- Ajax
- ajax
- ajax
- AJAX
- Ajax
- Ajax
- Ajax
- ajax
- ajax
- Android中使用UncaughtExceptionHandler来处理未捕获的异常
- github 提交不记录Contributions
- Native method not found: com.baidu.platform.comjni.tools.JNITools.GetToken:()Ljava/lang/String;
- Mysql支持的数据类型(总结)
- h5 canvas(toDataURL)实现将图片与文字结合
- Ajax
- Android下常见的内存泄露 经典
- Sql查询死锁的方法
- ubuntu升级php版本
- vs2012 C# 黑盒测试,白盒测试,UI测试
- 问题总结--JSP过大解决方案
- 网络编程学习笔记一:Socket编程
- iOS导入第三方类库常见报警linker command failed with exit code 1 (use -v to see invocation)
- Collections.unmodifiableList()