【发布时间】:2011-12-14 08:47:39
【问题描述】:
我至少需要这样的atm功能:
function ExampleClass() {
}
ExampleClass.prototype.__noSuchMethod__ = function() {
console.log("No such method, maybe you should try reading the docs?");
}
example = new ExampleClass();
example.eatPizza();
它还没有在 v8 中实现或以其他方式模拟吗?
有人在他们的项目中实现过这样的功能吗?
谢谢
【问题讨论】:
标签: javascript node.js v8