cho*_*bo2 10 jquery jquery-plugins toastr
我正在寻找松树通知(http://pines.sourceforge.net/pnotify/)它看起来不错,但它似乎没有什么实际的文档,所以我想知道有没有更多的建立和工作在那里?
就像我不想花时间试图弄清楚如何使用松树,然后发现它缺少一些功能,我需要几个月后,我需要更改为一个不同的插件.
这发生在我身上,因为我正在使用tablesorter 2.0然后我需要过滤但是他们有点吸吮所以我发现数据包有什么有这么大的api并且开发得更多.
所以我想知道是否有像datatables(在开发和功能方面)只是为了通知.
编辑
所以我看着jgrowl,有点混淆如何使用主题滚轮.
所以我拿了一次示例文件并用我认为是垃圾的所有内容删除了它.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml" debug="true">
<head>
<title>jGrowl meet Twitter</title>
<link rel="stylesheet" href="../jquery.jgrowl.css" type="text/css"/>
<link type="text/css" href="css/le-frog/jquery-ui-1.7.2.custom.css" rel="Stylesheet" />
<script type="text/javascript">
$(function(){
$('.ui-state-default').hover(
function(){$(this).addClass('ui-state-hover');},
function(){$(this).removeClass('ui-state-hover');}
)
.mousedown(function(){$(this).addClass('ui-state-active');})
.mouseup(function(){$(this).removeClass('ui-state-active');})
.mouseout(function(){$(this).removeClass('ui-state-active');});
});
</script>
<script type="text/javascript" src="jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="../jquery-1.3.2.js"></script>
<script type="text/javascript" src="../jquery.jgrowl.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// This value can be true, false or a function to be used as a callback when the closer is clciked
$.jGrowl.defaults.closer = function() {
console.log("Closing everything!", this);
};
$.jGrowl("Sticky notification with a header",
{
header: 'A Header',
sticky: true,
});
});
</script>
</head>
<body>
<div id="trdevtool_contain" class="ui-widget ui-widget-content ui-corner-all">
<div class="ui-widget-header ui-corner-top">
<h1>jQuery UI ThemeRoller <span>Developer Tool</span></h1>
</div>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
我不明白这是为了什么
<script type="text/javascript">
$(function(){
$('.ui-state-default').hover(
function(){$(this).addClass('ui-state-hover');},
function(){$(this).removeClass('ui-state-hover');}
)
.mousedown(function(){$(this).addClass('ui-state-active');})
.mouseup(function(){$(this).removeClass('ui-state-active');})
.mouseout(function(){$(this).removeClass('ui-state-active');});
});
</script>
Run Code Online (Sandbox Code Playgroud)
它似乎与应用主题无关.我把它拿走了,主题仍然适用.如果你看看我的jgrow
$.jGrowl("Sticky notification with a header",
{
header: 'A Header',
sticky: true,
});
Run Code Online (Sandbox Code Playgroud)
我没有提到主题,但仍然有一些如何使用主题.为什么要采用这个主题?