0
我已經包括jQuery的noty但我得到以下錯誤TypeError: self.options.theme is undefined
在js文件self.options.theme.style.apply(self);
我用Google搜索,但沒有成功這行。類型錯誤:self.options.theme未定義在我的項目
<script>
$(document).ready(function() {
$("#Send").click(function() {
$.ajax({
type: "POST",
url: "RetrievePassword.aspx/SendNewPassword?email=" + $("#Email").val(),
contentType: "application/json;charset=utf-8",
success: function (result) {
//alert(result.d);
var n = noty({
text: 'A new password has been mailed', theme: 'default', layout: 'center', type: 'success', timeout: 3000, callback: {
onClose: function() {
}
}
});
window.location.href = 'Login.aspx';
},
error: function (response) {
var n = noty({ text: "An error occurred, either the email does not exists or is incorrect.", theme: 'default', layout: 'center', type: 'error', timeout: 2000 });
}
});
});
});
</script>
這是我引用: < script src =「Scripts/noty/layouts/center.js」> – Gericke
你可以發函後於何處此代碼位於我可以看一看? – danielrsmith
我試圖看到正在生成的實際錯誤,不能僅僅通過源代碼來實現。 – danielrsmith