JavaScript 修改内置对象
var PureObject = Object; Object = function(){ } Object.prototype = PureObject.prototype; //或 //Object.prototype = {}.constructor.prototype; Object.prototype.hello = function(){ alert("Hello!!"); } function MyObject(){} var obj = {name:34}; obj.hello();