我$tabAcc.removeClass is not a function
在执行下面的代码时收到一个 JavaScript 错误。可能是什么问题?
var $tabAcc = '',
$tabtoShow = '',
$tabSelectAcc = '',
$tabtoShowSelected = '',
$tabSelectAcc = '',
$tabBilling = '',
$tabtoShowBilling = '',
$tabSelectBilling = '',
$tabtoShowBillingSelected = '';
$(".tabAcc").mouseover(function () {
$tabAcc = $(".tabAcc");
$tabtoShow = $tabAcc.children('.tabListMenu');
$tabAcc.removeClass('tabAcc').addClass('tabHoverAcc');
$tabtoShow.show();
}).mouseout(function () {
$tabAcc.removeClass('tabHoverAcc').addClass('tabAcc');
$tabtoShow.hide();
});