0
我運行到其內容在我的谷歌Chrome瀏覽器的控制檯遵循錯誤語法錯誤:與我的PHP腳本
Uncaught SyntaxError: Unexpected end of input
下面是我的代碼:
/*===== Login Alert ======*/
function loginAlert() {
swal({
title: "Login Required",
type: 'error',
text: "Please <a href='/login'>login</a> first to submit your ticket.",
html: true,
});
}
上午什麼我做錯了,我該如何解決它?
你有','在那裏,不應該在那裏。此外,這看起來像JavaScript給我?所以,你的問題可能在其他地方,因爲你的錯誤確實在'php'內。 – Nytrix
@Nytrix Re:逗號,請閱讀https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Trailing_commas – ceejayoz