zoukankan      html  css  js  c++  java
  • AJAX

             $.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);
                        }
               );  
     

  • 相关阅读:
    33 函数参数的传递方式
    33 函数递归调用
    32 头文件
    31 函数
    30 枚举
    centos6.5升级默认的Mysql到5.5方法
    Centos6.5命令行快捷键
    redhat 安装lamp
    CentOS6.5中的vsftpd安装配置
    添加一个用户并且让用户获得root权限
  • 原文地址:https://www.cnblogs.com/rzkwz/p/12506841.html
Copyright © 2011-2022 走看看