Javascript-Aufruf von parent-Funktion

Frage in der Beschreibung

function Parent(){
    this.alertParent(){
        alert("Parent alert");
    }

    function child(){
        //how can I call to this.alertParent() from here without passing any  
        //parameters?
    }
}

InformationsquelleAutor Ilya Gazman | 2012-06-09

Schreibe einen Kommentar