1423
2013-10-09 20:12:19 +08:00
PAC加alert,可复制以下
function gen_dbg_info(){
debugPAC = "IP: " + myIpAddress();
debugPAC += ", Hostname: " + host;
if (isResolvable(host)) {resolvableHost = "True"} else {resolvableHost = "False"};
debugPAC += ", Host Resolvable: " + resolvableHost;
debugPAC += ", Hostname IP: " + dnsResolve(host);
if (isPlainHostName(host)) {plainHost = "True"} else {plainHost = "False"};
debugPAC += ", Plain Hostname: " + plainHost;
debugPAC += ", Domain Levels: " + dnsDomainLevels(host);
debugPAC += ", URL: " + url;
// Protocol can only be determined by reading the entire URL.
if (url.substring(0,5)=="http:") {protocol="HTTP";} else
if (url.substring(0,6)=="https:") {protocol="HTTPS";} else
if (url.substring(0,4)=="ftp:") {protocol="FTP";}
else {protocol="Unknown";}
debugPAC +=", Protocol: " + protocol;
}
function end(_result){
if (debug === 1){
debugPAC = _result + ", " + debugPAC;
alert(debugPAC);
}
return _result;
}
if (debug === 1) gen_dbg_info();
在chrome://net-internals/#events
中搜索,筛选,查看