zoukankan      html  css  js  c++  java
  • ajax 高度封装的函数

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Title</title>
    </head>
    <body>
    <script src="jquery-1.12.4"></script>
    <script>

    // $.get('json.php', { id: 1 }, function (res) {
    // console.log(res)
    // })

    // $.post('json.php', { id: 1 }, function (res) {
    // console.log(res)
    // })

    // $.getJSON('json.php', { id: 1 }, function (res) {
    // console.log(res)
    // })


    // 明确请求的方式 根据方式选择快捷方法

    </script>

    </body>
    </html>
  • 相关阅读:
    CentOS 6.x 系统安装选项说明
    MySQL表的操作
    6月13号
    6月11号
    6月10号
    6月9号
    6月6
    day27
    day 28
    day 29
  • 原文地址:https://www.cnblogs.com/lujieting/p/10291404.html
Copyright © 2011-2022 走看看