Skip to content

Commit

Permalink
Merge branch 'master' of github.com:sunven/blog
Browse files Browse the repository at this point in the history
  • Loading branch information
sunven committed May 7, 2024
2 parents ae76941 + 532c847 commit 42f11d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@

:tada: navigator.sendBeacon

- 允许开发者在用户离开一个页面时异步地向服务器发送小量数据
- 通过post方式发送,network 类型显示为ping
- 少量,异步
- 当用户关闭页面时,常规的 AJAX 请求可能会被浏览器中止,导致数据无法发送成功。但 sendBeacon() 可以确保数据在页面关闭后依然被发送,不会阻塞页面的关闭
- 可以跨域发送数据,无需担心跨域问题。

:::

Expand Down
2 changes: 2 additions & 0 deletions docs/tool/other/linux-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ wsl -e /root/autossh/100.65.38.26.sh
## WSL zsh
自动代理:<https://gist.github.com/libChan/3a804a46b532cc326a2ee55b27e8ac19?permalink_comment_id=5019483#gistcomment-5019483>
查看wsl代理地址(nameserver)
```sh
Expand Down

0 comments on commit 42f11d8

Please sign in to comment.