我知道這是年後的今天,但你這是怎麼改變屬性gritter的/值:
var unique_id = $.gritter.add({
// (string | mandatory) the heading of the notification
title: '<i class="fa fa-4x fa-bell"></i> New Page Enhancement!',
// (string | mandatory) the text inside the notification
text: 'Visit "New Page Enhancements" by clicking on the notifications icon.',
// (string | optional) the image to display on the left
image: '../images/logo.png',
// (bool | optional) if you want it to fade out on its own or just sit there
sticky: true,
// (int | optional) the time you want it to be alive for before fading out
time: '',
// (string | optional) the class name you want to apply to that specific message
class_name: 'my-sticky-class'
});
的UNIQUE_ID可以被命名爲您計劃gritter的每個實例推出。