Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 AngularJS 的新手。我使用 angular-carousel 实现了一个简单的幻灯片放映应用程序。但是,当我单击项目符号项时,它会抛出诸如“TypeError:e.assign 不是函数”之类的错误。
我找到了答案。
rn-carousel-index,这就是我收到此错误的原因。
当您想在轮播中使用指标时,请在指标中使用诸如 rn-carousel-index='carouselIndex' 之类的变量。您需要在控制器中为此定义一个值。
$scope.carouselIndex = 0 或 1