我有一個jquery函數,它工作正常,直到我嘗試命名它。誰能告訴我我做錯了什麼?謝謝!jquery命名功能不起作用
http://jsfiddle.net/Alga/UaZ65/4/
function thumbHover() {
$('.thumb').hover(function() {
$('.info-top p').text('Hover Text');
},
function() {
if (!$('.info-top p').hasClass('active')) {
$('.info-top p').text('');
}
});
}
非常感謝! – Alga