0

我想在 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'
    });
});
4

2 回答 2

0

只需将其添加到页面的头部即可。这对我有用

<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>
于 2019-01-31T00:11:52.613 回答
0
<!-- Theme JS files -->
    <script type="text/javascript" src="assets/js/plugins/notifications/pnotify.min.js"></script>

您需要在页面顶部上传 pnotify Javascript 文件。

于 2021-05-20T20:56:22.583 回答