2012-04-20 111 views

回答

0

那麼簡單地在默認的preventDefault方法中進行切換呢?

var isFBActive = true; 
$(document).ready(function(e) 
{ 
.. after your FB initilisation code .. 
$('.yourimageclass').click(function (e) { if (!isFBActive) {e.preventDefault();} }); 
});