我正在尝试在结帐页面(FoxyCart 模板)上安装Noty(一个 jQuery 通知插件)。我在结帐模板的部分中安装了以下代码:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript" src="http://lavajavamaui.com/js/noty/jquery.noty.js"></script>
<script type="text/javascript" src="http://lavajavamaui.com/js/noty/layouts/top.js"></script>
<script type="text/javascript" src="http://lavajavamaui.com/js/noty/layouts/topLeft.js"></script>
<script type="text/javascript" src="http://lavajavamaui.com/js/noty/layouts/topRight.js"></script>
<!-- You can add more layouts if you want -->
<script type="text/javascript" src="http://lavajavamaui.com/js/noty/themes/default.js">
</script>
<script type="text/javascript">
var noty = noty({text: 'noty - a jquery notification library!'});
</script>
如果我理解正确,这就是让它正确显示所需要做的一切。由于某种原因,通知没有弹出。这条线有问题吗?
<script type="text/javascript">
var noty = noty({text: 'noty - a jquery notification library!'});
</script>
这是应该安装 Noty的页面。