function Person(){} var root = Object.prototype; root.say = function () { alert("hi"); } Person.say(); var p = new Person(); p.say();
No comments:
Post a Comment