我已经在我的项目中包含了 jquery noty,但是我TypeError: self.options.theme is undefined
在 js 文件的这一行中得到了以下错误,self.options.theme.style.apply(self);
我已经用谷歌搜索但没有成功。
<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>