<!DOCTYPE html>
<html>
<body>
<h1>Navigator 对象</h1>
<p>platform 属性返回浏览器平台(操作系统):</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"navigator.platform 是:" + navigator.platform;
</script>
</body>
</html>