Answer the question
In order to leave comments, you need to log in
CoffeeScript: how to write parameters to a self-calling function?
The essence of this is to get the output:
(function() {
// ...
})(window); // how to write to get window here
and another question, is there a syntax for compiling comments like "//"
Answer the question
In order to leave comments, you need to log in
Found:
(->
// ...
) jQuery, window
(function() {
// ...
})(jQuery, window);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question