ajax设置
来源:互联网 发布:ppt美化大师 for mac 编辑:程序博客网 时间:2024/05/21 10:36
function ajaxFun(props){var url=props.url;var data=props.data;var success=props.success;$.ajax({ url:url, type:"POST", cache:false, contentType:"application/json;charset=utf-8",data:mycomm_ascii2native(JSON.stringify(data)), dataType:"json", processData:false,beforeSend:function(request){request.setRequestHeader("xxx","xxx");},success:function(obj){},error:function(request,textStatus,errorThrown){},complete:function(){}});}//native2asciifunction mycomm_native2ascii(n){ var regexp=/[^\x00-\xff]/g; var a=n; while(m=regexp.exec(n)){ a=a.split(m[0]).join(escape(m[0]).split("%").join("\\")); } return a; }//ascii2native function mycomm_ascii2native(a) { var n=a; var n=unescape(n.split("\\").join("%")); return n;}
- ajax设置
- AJAX TabContainer 样式设置
- 设置Ajax细节
- ajax 设置全局同步
- jquery ajax超时设置
- ajax中文编码设置
- ajax 超时设置
- jquery ajax超时设置
- jquery ajax超时设置
- jquery ajax超时设置
- jquery ajax超时设置
- ajax设置默认值 ajaxSetup
- jquery ajax超时设置
- chrome设置ajax跨域
- jquery ajax超时设置
- ajax如何设置同步
- jquery ajax超时设置
- ajax 设置消息头
- 指定log4j配置文件的位置
- log4j.properties配置详解
- 腾讯webQQ判断浏览器
- IE调试工具 IETester
- C++虚拟继承
- ajax设置
- 测试功能总结得与失随谈
- GridBagLayout布局管理器应用详解
- 使用Spring进行面向切面(AOP)编程
- struts2自定义Interceptor基本使用
- 基于xmpp openfire smack开发之smack类库介绍和使用[2]
- js判断是否安装了客户端(针对IE,IE6除外)以及表单提交方式打开新页面
- js提交表单打开新页面
- Foundation——各种数值