![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ajax
tongluren381
这个作者很懒,什么都没留下…
展开
-
$.ajax()方法详解
$.ajax()方法详解 jquery中的ajax方法参数总是记不住,这里记录一下。 1.url 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。 3.timeout 要求为Number类型的参数,设置请求超时时间(毫秒)。此设置将覆盖$.ajaxSetup()方法的全局设置。 4.async 要求为B.转载 2020-12-29 13:59:06 · 288 阅读 · 0 评论 -
ajax的data传参的两种方式
/** * 订单取消 * @return {Boolean} 处理是否成功 */ function orderCancel(orderId, commant){ var flag = false; $.ajax({ type: "POST", url: "../order/orderCancel.action", //orderModifyStatus ...转载 2019-12-02 17:22:46 · 186 阅读 · 0 评论