在我的 gsp 中,我有以下代码。
$ = jQuery.noConflict();
j$(function($){
j$(document).ready(function(){
j$('#news-container').vTicker({
speed: 500,
pause: 3000,
animation: 'fade',
mousePause: true,
showItems: 1
});
j$(document).keydown(function(event) {
$("#helpLinkId").hide();
});
});
})(jQuery);
运行时,它会给出类似未捕获的 TypeError: object is not a function(匿名函数)。解决方案是什么?