String.prototype.test = function () {
        alert('prototype');
    }

    var a = "";
    a.test();