我一直在研究CoffeeScript,但我不明白您将如何编写这样的代码。它如何处理其语法中的嵌套匿名函数?
;(function($) {
var app = $.sammy(function() {
this.get('#/', function() {
$('#main').text('');
});
this.get('#/test', function() {
$('#main').text('Hello World');
});
});
$(function() {
app.run()
});
})(jQuery);