简体   繁体   English

如何在 JavaScript 中获取当前 Windows 用户的名称

[英]How to get the name of the current Windows user in JavaScript

I was wondering how I would get the name of the current user in JavaScript as part of an HTML document.我想知道如何在 JavaScript 中获取当前用户的姓名作为 HTML 文档的一部分。

In Java, one would type System.getProperty("user.name");在 Java 中,可以输入System.getProperty("user.name"); to achieve this.为了达成这个。 What is the alternative to this in JavaScript? JavaScript 中的替代方法是什么?

I was wondering how I would get the name of the current user in JavaScript as part of an HTML document.我想知道如何在 JavaScript 中获取当前用户的姓名作为 HTML 文档的一部分。

In Java, one would type System.getProperty("user.name");在 Java 中,可以输入System.getProperty("user.name"); to achieve this.为了达成这个。 What is the alternative to this in JavaScript? JavaScript 中的替代方法是什么?

I was wondering how I would get the name of the current user in JavaScript as part of an HTML document.我想知道如何在 JavaScript 中获取当前用户的姓名作为 HTML 文档的一部分。

In Java, one would type System.getProperty("user.name");在 Java 中,可以输入System.getProperty("user.name"); to achieve this.为了达成这个。 What is the alternative to this in JavaScript? JavaScript 中的替代方法是什么?

I was wondering how I would get the name of the current user in JavaScript as part of an HTML document.我想知道如何在 JavaScript 中获取当前用户的姓名作为 HTML 文档的一部分。

In Java, one would type System.getProperty("user.name");在 Java 中,可以输入System.getProperty("user.name"); to achieve this.为了达成这个。 What is the alternative to this in JavaScript? JavaScript 中的替代方法是什么?

I was wondering how I would get the name of the current user in JavaScript as part of an HTML document.我想知道如何在 JavaScript 中获取当前用户的姓名作为 HTML 文档的一部分。

In Java, one would type System.getProperty("user.name");在 Java 中,可以输入System.getProperty("user.name"); to achieve this.为了达成这个。 What is the alternative to this in JavaScript? JavaScript 中的替代方法是什么?

I was wondering how I would get the name of the current user in JavaScript as part of an HTML document.我想知道如何在 JavaScript 中获取当前用户的姓名作为 HTML 文档的一部分。

In Java, one would type System.getProperty("user.name");在 Java 中,可以输入System.getProperty("user.name"); to achieve this.为了达成这个。 What is the alternative to this in JavaScript? JavaScript 中的替代方法是什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM