ajax书写方式及参数,Ajax是什么?Ajax书写方式及内部主要参数都有哪些?

 
 

class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded"

lang="javascript"

cid="n312"

mdtype="fences"

style="box-sizing: border-box;

overflow: visible;

font-family: "

Fira Code",

Consolas, "

Lucida Console",

Courier, monospace, "

Helvetica Neue",

Helvetica, "

Arial sans-serif";

font-size: 0.9rem;

display: block;

break-inside: avoid;

text-align: left;

white-space: normal;

background-image:

inherit; background-position: inherit;

background-size: inherit;

background-repeat: inherit;

background-attachment: inherit;

background-origin: inherit;

background-clip: inherit;

background-color: rgb(34, 37, 38);

position: relative !important;

padding: 6px 10px 6px 0px;

box-shadow: rgba(0, 0, 0, 0.16) 0px 2px 5px 0px, rgba(0, 0, 0, 0.12) 0px 2px 10px 0px;

margin-bottom: 2.10526rem;

border: none;

border-radius: 6px;

width: inherit; color: rgb(171, 192, 208);

font-style: normal;

font-variant-ligatures: normal;

font-variant-caps: normal;

font-weight: 400;

letter-spacing: normal;

orphans: 2; text-indent: 0px; text-transform: none;

widows: 2; word-spacing: 0px;

-webkit-text-stroke-width: 0px;

text-decoration-style: initial;

text-decoration-color: initial;">

$.ajax({

type: // 请求方式,

url: // 请求地址,

async: // 布尔值,表示请求是否异步处理。默认是 true ,

contentType: // 发送的内容类型,

data: // 发送到服务器的数据,JSON类型,

dataType: // 响应的数据类型,

success: function(data){},// 请求成功时运行的函数

error:function(e){} // 请求失败要运行的函数。

});

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值