js获取referer、useragent、浏览器语言

王朝干货 · 作者: 佚名 2023-08-23
  字体: |||超大
 
Abstract
运行结果如下:
Text

js获取referer、useragent、浏览器语言的代码如下:

var ref = document.referrer;
var ua = navigator.userAgent;
var lang = navigator.language;
document.write("1. refferrer: " + ref);
document.write("<br>2. userAgent: " + ua);
document.write("<br>3. language: " + lang);

 
 
Recommend
 
>>返回首頁<<