var ua = navigator.userAgent.toLowerCase();
var baseUrl=window.location.protocol+"//"+window.location.hostname+'/?'+new Date().getTime();
document.writeln("userAgent:"+ua);
document.writeln("<br/>baseUrl:"+baseUrl);
结果:
userAgent:mozilla/5.0 (windows nt 10.0; wow64) applewebkit/537.36 (khtml, like gecko) chrome/78.0.3904.108 safari/537.36
baseUrl:http://result.xxx.top/?1581821762269
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 查询128 IP查询