jQuery03

jQuery

  • 今天我们继续来聊 jQuery

发送 ajax 请求

  • 发送 get 请求

    // 直接使用 $.get 方法来发送一个请求
    /*
    	参数一: 请求地址
    	参数二: 请求时携带的参数
    	参数三: 请求成功的回调
    	参数四: 返回的数据类型
    */
    $.get('./ajax.php', {
         
          
           id: 10 }, function (res) {
         
          
           console

猜你喜欢

转载自blog.csdn.net/weixin_45896126/article/details/108983939