The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
前提:你需要一台的VPS,目前的vultr的VPS,网速较快,可支持ipv6。vultr支持支付宝付款,对大陆消费者非常友好。 | |
vultr 通过以下链接注册,优惠$5. | |
https://www.vultr.com/?ref=7107871 | |
启用 bbr(可选) | |
bbr 需要 Linux 内核版本为 4.9 以上才可以使用,若内核版本过低须先升级内核,Ubuntu 18.04 默认是已经启用的: | |
# 查看内核版本 | |
uname -r |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for: