jQuery中Ajax的全局设定$.ajaxSetup()

$.ajaxSetup({
    //全局设定
    url:"a.html",
    success: function(data){
         $("#serverResponse").html(decodeURI(data));   
     }
})
function doRequestUsingGET(){
 $.ajax({
  data: createQueryString(),
  type: "GET"
 });
}
function doRequestUsingPOST(){
 $.ajax({
  data:"firstName="+firstName+"&birthday="+birthday;
  type: "POST"
 });
}

posted on 2012-05-17 11:38 youngturk 阅读(2168) 评论(0)  编辑  收藏 所属分类: Ajax


只有注册用户登录后才能发表评论。


网站导航:
 
<2012年5月>
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

导航

统计

公告

this year :
1 jQuery
2 freemarker
3 框架结构
4 口语英语

常用链接

留言簿(6)

随笔分类

随笔档案

文章分类

文章档案

相册

EJB学习

Flex学习

learn English

oracle

spring MVC web service

SQL

Struts

生活保健

解析文件

搜索

最新评论

阅读排行榜

评论排行榜