林想知道是否有人可以幫我一點代碼。BootBox - 意外的標識符錯誤
我使用BootBox的某些Modal窗口,我想添加一些自定義的HTML到確認方法,但我不認爲我做對了。
我的代碼如下:
$('.next').click(function (event) {
event.preventDefault();
var href = $(this).attr('href');
bootbox.confirm({
message: "I am a testing message",
title: "Please confirm you have enrolled"
callback: function (result) {
if (result) {
location.href = href;
}
}
});
});
錯誤即時得到如下:
Uncaught SyntaxError: Unexpected identifier
任何幫助將不勝感激。
乾杯,
你在哪一行發生這個錯誤?? ..我認爲你有一個錯字...在標題後面有一個'''',請確認你已經註冊了'' – 2014-11-21 04:32:36