JS初学者在这里。我一直在试图在我的网站上做slabtext,但我得到一个错误。不知道如何解决它。
$(window).load(function() {
Uncaught TypeError: Property '$' of object [object Object] is not a function
slabTextHeadlines();
});
// Function to slabtext the hero panel
function slabTextHeadlines() {
$('html:not(.ie8)').find('.slab').slabText({
// Don't slabtext the headers if the viewport is under 380px
"viewportBreakpoint":380
});
};
任何想法? Pablo。
后的你''
标签的内容。你可能没有加载jQuery。 – Blender 2013-03-09 00:21:44这表明最有可能你没有在这个页面中包含jQuery库,我们可以看到HTML吗? – 2013-03-09 00:21:47