Article View: pl.comp.lang.javascript
Article #39595Czy zmienna jest zdefiniowana?
From: javer_dd
Date: Sat, 22 Apr 2006 18:03
Date: Sat, 22 Apr 2006 18:03
20 lines
1143 bytes
1143 bytes
Witam, Jak rozpoznaje się czy zmienna jest zdefinowana czy nie? var tab=new Array(2); tab[0]=100 alert(tab[0]+tab[1]); //zwraca:100undefinied Ja chciałbym wcześniej stwierdzić czy tab[1] ma jakąś wartość czy jest niezdefiniowany. Z góry dziękuję, Javer_DD -- Wysłano z serwisu OnetNiusy: http://niusy.onet.pl
Technical Details
Message-ID:
<2907.00000131.444a6fec@newsgate.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsgate.onet.pl!niusy.onet.plShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsgate.onet.pl!niusy.onet.pl From: javer_dd@op.pl Newsgroups: pl.comp.lang.javascript Subject: Czy zmienna jest zdefiniowana? Date: 22 Apr 2006 20:03:25 +0200 Organization: Onet.pl SA Lines: 20 Message-ID: <2907.00000131.444a6fec@newsgate.onet.pl> NNTP-Posting-Host: newsgate.onet.pl Mime-Version: 1.0 X-Trace: newsgate.test.onet.pl 1145729005 16471 213.180.130.18 (22 Apr 2006 18:03:25 GMT) X-Complaints-To: abuse@onet.pl NNTP-Posting-Date: 22 Apr 2006 18:03:25 GMT X-Mailer: http://niusy.onet.pl X-Forwarded-For: 83.30.82.119, 192.168.243.48 X-User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit