我想用ASP.NET/C#实现一个服务器端的Pnotify函数。请帮帮我,我已经试过了,但什么也没发生。我也在使用母版页。
$(function () {
new PNotify({
title: 'Regular Notice',
text: 'Check me out! I\'m a notice.',
type: 'success',
cornerclass: 'ui-pnotify-sharp',
styling: 'bootstrap3'
});
});发布于 2019-01-31 08:11:53
只需在页面的标题部分添加此内容。这对我很有效
<script type="text/javascript">
function () {
new PNotify({
title: 'Regular Notice',
text: 'Check me out! I\'m a notice.',
type: 'success',
cornerclass: 'ui-pnotify-sharp',
styling: 'bootstrap3'
});
};
</script>发布于 2021-05-21 04:56:23
<!-- Theme JS files -->
<script type="text/javascript" src="assets/js/plugins/notifications/pnotify.min.js"></script>您需要在页面顶部上传pnotify Javascript文件。
https://stackoverflow.com/questions/47667525
复制相似问题