原型扩展

2016-12-15  本文已影响0人  智多牛
String.prototype.print = function()
{
    alert(this)
}

var name = '小明';

name.print();
上一篇 下一篇

猜你喜欢

热点阅读