
你可以通過這個神奇的插件管理您的通知。調用示例<script src="assets/js/slide.min.js"></script> <script> $(document).ready(function() { $(".wrapper-slider").Slide({ refreshAgo: true, slidewithclick:true, on: function(ids) { //Do anything console.log("Done. You have the elements with id: " + JSON.stringify(ids)); }, categories:[ { //id: 0 --> auto_increment title:'My news', icon: 'assets/images/icon/message.png' }, ], notifications: [ { id:0, category: 0, title: 'First news', text: 'This is the first news!', ago: new Date(2013, 6, 10, 10, 55, 0) }, { id:1, category: 0, title: 'Second news', text: 'This is the second news, is it difficult? ;)', ago: new Date(2013, 6, 10, 12, 0, 0) }, ] }); $("body").css({overflow:"auto"}); }); </script>簡單加載通知 刪除通知回調函數 個人圖標