kongxc
    1 异步请求:
    1.1 $.ajax
       $.ajax({
                url : \'your url\',
                data:{name:value},
                cache : false, 
                async : true,
                type : "POST",
                dataType : \'json/xml/html\',
                success : function (result){
                    do something....
                }
            });
    2 同步请求
    2.1 $.ajax
       $.ajax({
                url : \'your url\',
                data:{name:value},
                cache : false, 
                async : false,
                type : "POST",
                dataType : \'json/xml/html\',
                success : function (result){
                    do something....
                }
            });
    2.2 $.post
      $.post(
                \'your url\',
                {name:value},
                function(data) {
                    do something...
                },
            \'json/xml/html\'
            );

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
猜你喜欢
  • 2021-09-05
  • 2022-03-09
  • 2022-12-23
  • 2021-11-22
  • 2022-03-08
相关资源
相似解决方案