function Customer(name) { var risk = 0; this.name = name; } var customer = new Customer("aa"); console.log(customer.name); // aaconsole.log(customer.risk); // undefined new Customer时,var risk发生了什么?
添加回答
举报
0/150
提交
取消