我正在为代码块中的*
获取它
// click function for the "See More Scores" and "See Fewer Scores" buttons
$('.show-fewer-or-more-scores').click(function ( ) {
var rowsNotFirst = $(this).closest('tbody').children('tr:gt(0)');
// unravel the scores in an animated fashion
rowsNotFirst.filter(function (idx, el) {
setTimeout(function ( ) { $(el).toggleClass("hidden"); },
50 * idx);
});
});
我不明白为什么。我把它放在JSHint中,并没有提醒任何导致这种情况的问题。完整代码可以被视为https://github.com/jamkin/Snake/blob/master/SnakeGame/Scripts/game.js的提交bd4629b。您还可以看到实时错误here,但如果您在一天或更长时间内访问此帖子,它可能会被修复。
任何想法我做错了什么?