<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">
function win(){
alert(window.navigator.appName+"\n"+window.navigator.appVersion);
}
</script>
<input type="button" value="演示win" οnclick="win()" />
</body>
</html>
出现浏览器的名称和版本
BOM中的navigator对象
最新推荐文章于 2022-10-23 16:38:24 发布