码迷,mamicode.com
首页 > Web开发 > 详细

AJAX

时间:2020-03-16 21:51:18      阅读:78      评论:0      收藏:0      [点我收藏+]

标签:app   func   post   成功   alert   回调   col   url   char   

         $.ajax({
                    url: 带载入页面,
            type: post/get, contentType:
application/json;charset=utf-8, data: {key:value},//请求数据 success: function (data) { //载入成功时回调函数 alert(data); } });
         $.get(
                    url: 带载入页面,
            type: post/get,
                    contentType: application/json;charset=utf-8,
                    data: {key:value},
                    success: function (data) { //载入成功时回调函数
                        alert(data);
                    }
           ); 
         $.post(
                    url: 带载入页面,
            type: post/get,
                    contentType: application/json;charset=utf-8,
                    data: {key:value},
                    success: function (data) { //载入成功时回调函数
                        alert(data);
                    }
           );  
 

 

AJAX

标签:app   func   post   成功   alert   回调   col   url   char   

原文地址:https://www.cnblogs.com/rzkwz/p/12506841.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!