标签: javascript oop prototype prototypal-inheritance
我正在尝试通过原型添加方法但是出错了。知道出了什么问题吗?
function Graph() { // Code } Graph.prototype.render = function() { // Code } var test_graph = new Graph; test_graph.render(); // Returns error that function Graph.render isn't defined.