function d(){this.get=function(){this.getNum()}};d.prototype.getName=function(){return 3;};var d = new d();console.log(d.get());//undefined为什么这里显示undefined?而不是3?求解答
1 回答
![?](http://img1.sycdn.imooc.com/5458620000018a2602200220-100-100.jpg)
慕无忌1623718
TA贡献1744条经验 获得超4个赞
function d(){this.get=function(){return this.getName()}};
d.prototype.getName=function(){return 3;};
var d = new d();
console.log(d.get());//undefined
添加回答
举报
0/150
提交
取消