0
我发布了toastr.error("a message")
但出现此错误。它发生在_setContainer
当它$animate.enter().then(function())
。 我错过了什么?使用toastr获取'无法读取属性',然后'未定义'
function _setContainer(options) {
if(container) { return containerDefer.promise; } // If the container is there, don't create it.
container = angular.element('<div></div>');
container.attr('id', options.containerId);
container.addClass(options.positionClass);
container.css({'pointer-events': 'auto'});
var body = $document.find('body').eq(0);
$animate.enter(container, body).then(function() {
containerDefer.resolve();
});
return containerDefer.promise;
}
哪里是'container','containerDefer','$ animate'定义? – 2014-12-11 02:26:41
也只是碰到了这个。我认为$ animate.enter代码对于Angular 1.3是新的。你需要使用1.2分支 – Howie 2014-12-11 11:35:40
谢谢杰伊!我现在意识到,我不能只为我安装任何鲍尔抓斗。 – Rainman 2014-12-11 16:57:04