Como mostrado abaixo:
<html xmlns = "http://www.w3.org/1999/xhtml"> <head> <meta http-equiv = "content-type" content = "text/html; charset = gb2312"/> <tena name = "keyss" contents "=" Keywords = "JSOTWORTHSTSO/" KHETHLETSTSO/HTML; URL é acessível </title> </head> <body> <div> O endereço URL da verificação: </div> <typ type = "text" id = "urltext" value = "https://ww.baidu.com/"/> <input Type = "Button =" JSON se é acessível "<click =" <click = "get"/"" id = "msg1"> </div> <div id = "msg"> </div> <script type = "text/javascript" src = "js/jQuery-1.10.2.js"> </script> <script type = "text/javascript"> functurl () {$ ("#mss"). var url = $ ("#urltext"). var time2 = DateTime.DateTime; $ ("#msg1"). html ("Enviar tempo:" + time2); $ .ajax ({type: 'get', url: url, cache: false, datatype: "jsonp", // jSynLogical jsonp método é usado para processados: false, timeout: 10000, // tempo limite de tempo2; = []; "<br/> Tempo de resposta:" Time22); } função DispTime () {var date = new Date (); var yyyy = date.getlyear (); // ano de quatro bits var mês = date.getMonth () + 1; // mês 0-11 var dia = date.getDate (); // dia var hh = date.gethours (); // time var minuto = date.getMinutes (); // minuto varond = date.get.get.gets; milisEconds = date.getMillisEconds (); // ms if (mês <10) {mês = "0" + mês; } if (dia <10) {dia = "0" + dia; } if (hh <10) {hh = "0" + hh; } if (minuto <10) {minuto = "0" + minuto; } if (segundo <10) {Second = "0" + Second; } var time = yyyy + "-" + mês + "-" + dia + "" + hh + ":" + minuto + ":" + segundo + "" " + milhões de segundos; var timetxt = aaaa + mês + dia + hh + minuto + segundo; var time = {datetime: horário, timetxt: timetxt} retorno tempo; } </script> </body> </html>O artigo acima JS determina se o URL solicitado está acessível. O método de implementação que suporta o julgamento entre domínios é todo o conteúdo compartilhado pelo editor. Espero que possa lhe dar uma referência e espero que você possa apoiar mais o wulin.com.