function d(){this.get=function(){this.getNum()}};d.prototype.getName=function(){return 3;};var d = new d();console.log(d.get());//undefined
function d(){this.get=function(){this.getNum()}};
d.prototype.getName=function(){return 3;};
var d = new d();
console.log(d.get());//undefined
为什么这里显示undefined?而不是3?求解答
慕无忌1623718
相关分类