using beforeSend and complete with $.post?

前端 未结 4 1297
轮回少年
轮回少年 2020-12-05 10:08

could one use the beforeSend() and complete() handlers with $.post or do you have to use $.ajax for it?

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 10:45

    Gotta use $.ajax, unless you use $.ajaxSetup(), but that may not be the wisest choice.

    Any reason why you shouldn't use $.ajax?

提交回复
热议问题