【发布时间】:2016-03-17 11:17:28
【问题描述】:
我有一个类似的服务代码;
<script>
var pop = function (type, message, callbackfn,duration) {
toaster.pop({
type: type,
body: message,
showCloseButton: true,
timeout: duration,
positionClass: "toast-top-full-width",
onHideCallback: callbackfn,
hideDuration : 1000,
hideMethod: 'slideUp'
});
</script>
但我的烤面包机没有淡入或淡出。 我的 AngularJS toastr 版本是:0.4.15 我应该在 pop 方法中添加哪个选项来获得淡出功能?
【问题讨论】:
-
你添加了它的 CSS 吗?
-
而且 0.4.15 已经很老了 最新的是 1.2.0 我建议更新它
-
@Michelem 是添加了 css,将尝试更新
标签: javascript angularjs toastr