jquery的$.post()和$.get()如何进行同步请求
因为.post()和.post()和.post()和.get()是jquery对$.ajax()封装的异步调用接口的方法。如果需要同步请求的时候,可以进行如下操作:在.post()或者.post()或者.post()或者.get()前把ajax设置为同步:$.ajaxSettings.async = false;在.post()或者.post()或者.post()或者.get()后把ajax...
转载
2019-04-11 19:13:08 ·
10745 阅读 ·
0 评论