69

我知道的HTTP请求

 6 years ago
source link: https://juejin.im/post/5a757d2f5188254e5c6c404a
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
HTTP大家都不陌生,但是HTTP的许多细节就并不是很多人都知道了,本文将讨论一些容易被忽略但又比较重要的点。首先,怎么用原生JS写一个GET请求呢?如下代码,只需3行:let xhr = new XMLHttpRequest(); xhr.open("GET

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK