[javaScript]new的使用与模拟实现

new运算符可以创建构造函数的实例,使用方式如下: function Student (name, className) { this.name = name; this.className = className; this.school = '人生有限学校' this.study = function () { console.log('努力学习') } var hello = 'hello' } Student.prototype.dayTime = ...