我无法调用“addFav”事件,请告诉我以下代码中是否有任何问题:
var CCRemoteMain = {
addFav :function(event) {
e.preventDefault();
alert('called');
return false;
},
Init: function () {
alert('called');
$('a#fav').bind('click', addFav);
}
};
$(document).ready(function() {
// Call the default function to be loaded
var RemoteMainFunc = CCRemoteMain.Init();
});