Article View: pl.comp.lang.javascript
Article #50220Re: Dziwna składnia
From: Peter May
Date: Fri, 20 Aug 2010 08:31
Date: Fri, 20 Aug 2010 08:31
15 lines
1107 bytes
1107 bytes
W dniu 2010-08-20 10:28, Paweł pisze:
> Witam !
>
> Czy ktoś może mi wyjaśnić jak rozumieć taki zapis zaczynający się od
> nawiasu:
>
> (function($) {
> $.a=5;
> }
> })(jQuery);
http://jibbering.com/faq/#scope
--
Peter
Technical Details
Message-ID:
<i4leh5$1hv$1@news.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!not-for-mailReferences:
<i4lehj$3rg$1@mx1.internetia.pl>Show 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!not-for-mail From: Peter May <peter.may@onet.pl> Newsgroups: pl.comp.lang.javascript Subject: Re: Dziwna składnia Date: Fri, 20 Aug 2010 10:31:33 +0200 Organization: http://onet.pl Lines: 15 Message-ID: <i4leh5$1hv$1@news.onet.pl> References: <i4lehj$3rg$1@mx1.internetia.pl> NNTP-Posting-Host: uw210.internetdsl.tpnet.pl Mime-Version: 1.0 X-Trace: news.onet.pl 1282293093 1599 80.55.152.210 (20 Aug 2010 08:31:33 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Fri, 20 Aug 2010 08:31:33 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 In-Reply-To: <i4lehj$3rg$1@mx1.internetia.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit