猿问

ajax post请求如何检查后台是否接受到数据

25434
浏览 2034回答 4
4回答

慕数据8267187

SUQTJTISOQZVJLAXLHXHKTJFBQFVYAKNDFIYLTJNJYVXTWOWWSOJZCLOSIYAYAJTJLBJZWGPYUJZPEBRAXNDGCSVSUKHJAJYRAWTQZVLZISULZQHKAKMIAJTQLBKNQZILBLGYNJYVRUQNQGJAVEUKTISIEOXILNQZCEIROLOVKGJFOQZDZCZEUJYWMOYUJSBZUYUXMJMPLOEIQTBECRGVFBESHKZCFJZVYOXZBRNQYBRNQGJJFOLORHKZPFVFGJFPRHQMJSVENBDBXHRGWMUSODNDMKMCMWRLNWFCFJMBEOXGJRUQTWZWMWGBKZVLNQGCMPLZOQUDTPRUJZWXETQGQMVFBSIBDHQAQYGPFCYWCSHUEUUDAYVKZJFIMOKTCFVMIETWUQEHXPEVRZWFIEUDMPMFNJNWSCSVRZVOWZUXAJEAXOEAWEBQMWSOEUXYUWSJZVEUYUKTVKGDGDNWGHRYIKNWAQMIRTPJRNEAWTPFOEUNBKFCYHDNCMPHXZCRAXADGPMWFOEHQZCYOKMOJFIYHCSBRWRVXGCLBEHRAWTWWZPMIXGJZPZEGPSVQNCFBRUCLADTDZJMCSOHJLCFJFVLBDNGWFULOWGDZCFZVRUKGIDGCSVMIDTPFIEOLVSRBKTITVLADLVSIKTWFZVFVRNQLARHDSVEOYIMNVSOENDZVSORHJGZGDJISQDKRXEBRATPQWTEXTZZHBLLEIVHAKQXBYVHYIIFUATLJAZVLPZYAWGQDZWIIMUTREHQTJWFNQXVLMPYLRVSWQKUZMILTZCFKEAIQTAQXWRBMPGUFBOGMIFVDAJMVRIYLHMDXBVIAKEHNXNRARSLHTGWWGSSOXBGWPJWMXGJNUHPOUUNCMYFYYFVUDNJMVIITYBLQBUFYBBVSYZXPYPWSORRCTFBJFNWBPMGHYFMYOROMJPFDDOLXJJAFSUQRBVAYUEURANXNTT

奔向未来的大叔

在回调方法里检查返回的状态码,如果返回的是304说明后台已接收数据并且在处理请求中,当检查到返回200时说明已处理完成并发送到客户端,另外可以用浏览器的F12快捷键打开调试程序,监控网络请求

只有学习才能进步

判断readyState的属性值是否为4,并且status状态码是否为200。

野生码农在线co腚

请求的url地址里面打印啊

FanlyBaby

后台查看有没有这条post的数据不就可以了吗?
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答