为什么navigator.userAgent;和 navigator.appCodeName;没见到输出什么啊?
为什么navigator.userAgent;和 navigator.appCodeName;没见到输出什么呢?
2015-11-30
var browser=navigator.appName; var b_version=navigator.appVersion; var b_platform= navigator.platform; var b_userAgent = navigator.userAgent; var b_appCodeName = navigator.appCodeName; document.write("(1)Browser name: "+browser+"<br>"); document.write("(2)Browser version: "+b_version+"<br>"); document.write("(3)b_platform: "+b_platform+"<br>"); document.write("(4)b_userAgent: "+userAgent+"<br>"); // 因为你写错了呀 b_userAgent 写成了 userAgent document.write("(5)b_appCodeName: "+appCodeName+"<br>"); //因为你写错了呀 b_appCodeName 写成了 appCodeName
举报