Z
Z
zhivulinal2016-08-09 09:54:02
CoffeeScript
zhivulinal, 2016-08-09 09:54:02

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

1 answer(s)
Z
zhivulinal, 2016-08-09
@zhivulinal

Found:
(->
// ...
) jQuery, window
(function() {
// ...
})(jQuery, window);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question