Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http 只能发送一次吗 ? #12

Open
wjf1547 opened this issue Oct 25, 2021 · 3 comments
Open

http 只能发送一次吗 ? #12

wjf1547 opened this issue Oct 25, 2021 · 3 comments

Comments

@wjf1547
Copy link

wjf1547 commented Oct 25, 2021

再次发送的时候,数据没有返回,一直在等待

@linroid
Copy link
Member

linroid commented Oct 25, 2021

可以给下示例代码不,这样我可以更清楚地了解问题

@wjf1547
Copy link
Author

wjf1547 commented Oct 29, 2021

可以给下示例代码不,这样我可以更清楚地了解问题

我已经知道了,请求ip好像有时候不成功,请求域名的话都能成功,而且请求ip特慢,也不知道是不是我服务器的原因

还有就是咋不更新了。。。

@wjf1547
Copy link
Author

wjf1547 commented Nov 12, 2021

let resp = await $http.get('http://api.example.com/')
let resp = await $http.get('http://192.168.1.1')
为什么想第一条请求域名的时候数据返回的特别快,而像第二条请求IP的时候数据返回特别慢啊,遇到好多次这种情况了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants