原型扩展 2016-12-15 本文已影响0人 智多牛 String.prototype.print = function() { alert(this) } var name = '小明'; name.print();