最後一行的意外結束是顯示錯誤未捕獲的語法錯誤輸入(Java腳本)
(function login() {
FB.login(function(response) {
if (response.status === 'connected') {
getElementById('status').innerHTML = 'we are connected.';
} else if (response.status === 'not authorized') {
document.getElementById('status').innerHTML = 'we are not logged in.'
} else {
document.getElementById('status').innerHTML = 'you are not logged into facebook.';
}
});
}
檢查代碼和文本的清晰度的格式發佈您的問題 –
哪一行是給這個問題之前? – gurvinder372
Add());在最後 – misher