reader 的实例

  1. const fetchUrl = async function (url) {
  2. const response = await fetch(url);
  3. const reader = response.body.getReader();
  4. const chunk1 = await reader.read();
  5. console.log(chunk1);
  6. }