var browser = "浏览器信息:";
for (var propname in navigator) {
browser += propname + ":" +navigator[propname] + "\n";
}
alert(browser);
输出浏览器信息(遍历对象的唯一方法)
最新推荐文章于 2021-03-09 23:17:10 发布
var browser = "浏览器信息:";
for (var propname in navigator) {
browser += propname + ":" +navigator[propname] + "\n";
}
alert(browser);