JavaScript 中的 new 关键字是 new 运算符,它创建用户定义的对象类型的实例。示例您可以尝试运行以下代码来使用 new 运算符创建 JavaScript 对象 -实时演示 var dept = new Object();dept.employee = "Amit";dept.department = "Technical";dept.technology ="Java";document.getElementById("test").innerHTML =dept.employee + " is working on " + dept.technology + " technology."; 输出Amit is working on Java technology.