संभावित डुप्लिकेट:
What does this mean? (function (x,y)){…}){a,b); in JavaScript
What do parentheses surrounding a JavaScript object/function/class declaration mean?यह "(फ़ंक्शन() {});", ब्रैकेट के अंदर एक फ़ंक्शन, जावास्क्रिप्ट में क्या है?
हाय सभी
मैं क्या निम्नलिखित पता नहीं है करता है:
(function(){
// Do something here
...
})(someWord) //Why is this here?;
मेरे कुए शेर हैं:
- ब्रैकेट के अंदर फ़ंक्शन डालने का क्या अर्थ है। i.e।
(function(){});
? - फ़ंक्शन के अंत में ब्रैकेट का सेट क्या करता है?
मैं आमतौर पर इन्हें jquery कोड, और कुछ अन्य जावास्क्रिप्ट पुस्तकालयों में देखता हूं।
ही यहाँ प्रश्न: http://stackoverflow.com/questions/3921922/what-does-this-mean-function-xyab- इन-जावास्क्रिप्ट/3 9 21 997 # 3 9 21 997 – DoXicK