2014-02-11 11 views

回答

1

解決了:

<script> 
{% for message in messages %} 
$(document).ready(function() { 
    $.pnotify({ 
     title: '{{ message.tags|upper }}', 
     text: '{{ message }}.', 
     type: '{{ message.tags }}', 
     hide: false, 
     styling: 'bootstrap', 
     closer_hover: false, 
     sticker_hover: false 
    }); 
}); 
{% endfor %} 
</script> 
+0

你使用:https://github.com/mouse0270/bootstrap-notify? – sphoenix

相關問題