点击后 Noty 不显示消息
Noty not display message after some clicks
我正在使用noty https://ned.im/noty/
这是我的代码:
<script>
function showNoty() {
var n = new Noty({
text: "<?php echo $message; ?>",
type: "error",
layout: "top",
theme:"sunset",
container: "#content",
closeWith:[]
});
n.show();
}
showNoty();
</script>
问题:
一切正常,直到第 6 次单击按钮显示消息。
所以,我可以点击 5 次并正确显示消息,在 +6 上点击不再起作用。
有人可以给点提示吗?
谢谢!
我需要使用静态方法(https://ned.im/noty/#/api?id=api-static-methods)
我解决了这个问题:
Noty.setMaxVisible(10);
谢谢大家!
我正在使用noty https://ned.im/noty/
这是我的代码:
<script>
function showNoty() {
var n = new Noty({
text: "<?php echo $message; ?>",
type: "error",
layout: "top",
theme:"sunset",
container: "#content",
closeWith:[]
});
n.show();
}
showNoty();
</script>
问题:
一切正常,直到第 6 次单击按钮显示消息。 所以,我可以点击 5 次并正确显示消息,在 +6 上点击不再起作用。
有人可以给点提示吗? 谢谢!
我需要使用静态方法(https://ned.im/noty/#/api?id=api-static-methods)
我解决了这个问题:
Noty.setMaxVisible(10);
谢谢大家!