使用jgrowl的時候,如果我們調用關閉所有菜單啓動/停止jQuery的菜單
$.jGrowl(data);
$.jGrowl('shutdown');
如何重新啓動它。
下面給出了一個錯誤
$.jGrowl('startup');
感謝。
使用jgrowl的時候,如果我們調用關閉所有菜單啓動/停止jQuery的菜單
$.jGrowl(data);
$.jGrowl('shutdown');
如何重新啓動它。
下面給出了一個錯誤
$.jGrowl('startup');
感謝。
啓動應該是一個有效的選項:
http://bitbucket.org/stanlemon/jgrowl/src/47d58d0e497f/jquery.jgrowl.js
代碼片段從該頁面:
/** Setup the jGrowl Notification Container **/
startup: function(e) {
this.element = $(e).addClass('jGrowl').append('<div class="jGrowl-notification"></div>');
this.interval = setInterval(function() {
$(e).data('jGrowl.instance').update();
}, this.defaults.check);
if ($.browser.msie && parseInt($.browser.version) < 7 && !window["XMLHttpRequest"]) {
$(this.element).addClass('ie6');
}
},
你可以提供錯誤的細節,也許更多的代碼來幫助我們確定發生了什麼問題?
謝謝
什麼是錯誤? – Hatchware 2010-02-19 15:42:30
沒有錯誤,但在jgrowl的調用中再次出現,它只是沒有顯示出來,因爲我們已經調用了shutdown – Hulk 2010-02-19 18:13:58
K代碼如下所示 func a(){.jGrowl(data); } func cleanup(){ $ .jGrowl('shutdown'); } a(); cleanup(); 所以,如果'a()'被稱爲帶或不帶'$ .jGrowl('startup');' jgrowl does not show up – Hulk 2010-02-19 18:17:35