简体   繁体   中英

ping cross domain url with javascript?

有没有办法只使用JavaScript ping ping http://google.com网站(没有提供任何pining界面)。

It is not possible to 'ping' from a browser using Javascript. There are some hacks available that allow you to do something similar under specific conditions.

You can find some information here at stackoverflow:

How to ping IP addresses using JavaScript
Is it possible to ping a server from Javascript?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM