🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.javascript
2 messages
2 total messages Started by Paweł Fri, 20 Aug 2010 08:28
Dziwna składnia
#50219
Author: Paweł
Date: Fri, 20 Aug 2010 08:28
11 lines
969 bytes
Witam !

Czy ktoś może mi wyjaśnić jak rozumieć taki zapis zaczynający się od 
nawiasu:

(function($) {
	$.a=5;
	}
})(jQuery);

Paweł
Re: Dziwna składnia
#50220
Author: Peter May
Date: Fri, 20 Aug 2010 08:31
15 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads