🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #39900

Re: Problem z kolejnoscia wywolania funkcji

#39900
From: Radosław Bułat
Date: Mon, 15 May 2006 10:39
35 lines
1648 bytes
Marcin Pawlak napisał(a):
> Hej,
> 
> Mam 3 funkcje: funkcja 1, funkcja 2, funkcja 3
> 
> [ciach]
> 
> Moim zdaniem powinno wyskakiwac 1 pozniej 2
> 
> ale robi sie na odwrot, funkcja 1 jeszcze sie nie skonczyla, a juz 
> zostaje wypisana 2, a dopiero pozniej 1...czemu tak jest i od czego to 
> zalezy?

Pokaz deklaracje funkcji i ich wywolanie bo to 2 rozne rzeczy...

U mnie taki kod wyswietla 1, potem 2

<script language="javascript">
function funkcja_1(){
         funkcja_2();
}

function funkcja_2(){
         alert("1");

}

function funkcja_3(){
         funkcja_1();
         alert("2");
}

funkcja_3();

</script>
Technical Details
Message-ID: <e49lp3$h73$1@bobo.ds5.agh.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!news.cyf-kr.edu.pl!agh.edu.pl!news.agh.edu.pl!localhost!not-for-mail
References: <e49i4k$65o$1@opal.icpnet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!news.cyf-kr.edu.pl!agh.edu.pl!news.agh.edu.pl!localhost!not-for-mail
From: Radosław Bułat <radarrek@poczta.fm>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Problem z kolejnoscia wywolania funkcji
Date: Mon, 15 May 2006 12:39:31 +0200
Organization: News serwer at news.ds5.agh.edu.pl
Lines: 35
Message-ID: <e49lp3$h73$1@bobo.ds5.agh.edu.pl>
References: <e49i4k$65o$1@opal.icpnet.pl>
NNTP-Posting-Host: radarek.ds5.agh.edu.pl
Mime-Version: 1.0
X-Trace: bobo.ds5.agh.edu.pl 1147689571 17635 192.168.29.34 (15 May 2006 10:39:31 GMT)
X-Complaints-To: abuse@localhost
NNTP-Posting-Date: Mon, 15 May 2006 10:39:31 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060502)
X-Accept-Language: pl, en-us, en
In-Reply-To: <e49i4k$65o$1@opal.icpnet.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit