我有这段代码,但是当出现问题并且控制台记录此错误时
未捕获的 SyntaxError:输入意外结束
$(function () {
var clicks = 0;
setLike('<?php echo $notrepage ?>');
FB.Event.subscribe('edge.create', function (response) {
if (getcookie('<? url_to_cookie($fbpage) ?>')) {
setLike('<?php echo $autrepage;?>');
var clicks = 1,
cooo = <? url_to_cookie($autrepage) ?> ;
} else if (clicks == 1) {
setcookie(cooo, '1', 350);
$("#inner-follow").remove();
$("#likeplay").remove();
document.getElementById("dsfsd").style.display = 'none';
document.getElementById("dsfsd").style.visibility = 'hidden';
document.getElementById("videos").style.display = 'block';
document.getElementById("videos").style.visibility = 'visible';
getViedo();
} else if (clicks = 0) {
setLike('<?php echo $fbpage; ?>');
var clicks = 1,
cooo = <? url_to_cookie($fbpage); ?> ;
}
});
谢谢 :)