Skip to content

Instantly share code, notes, and snippets.

@qunwang6
Created May 20, 2021 03:03
Show Gist options
  • Select an option

  • Save qunwang6/a06e804943a398c9e4515c7cdfe59b6f to your computer and use it in GitHub Desktop.

Select an option

Save qunwang6/a06e804943a398c9e4515c7cdfe59b6f to your computer and use it in GitHub Desktop.

Revisions

  1. qunwang6 created this gist May 20, 2021.
    5 changes: 5 additions & 0 deletions zx.mjs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@

    let resp = await fetch('http://baidu.com')
    if (resp.ok) {
    console.log(await resp.text())
    }