新增于: v21.2.0
navigator.platform
只读属性返回一个字符串,标识 Node.js 实例运行的平台。
¥The navigator.platform
read-only property returns a string identifying the
platform on which the Node.js instance is running.
console.log(`This process is running on ${navigator.platform}`);