我已经使用了carousel,因为我已经使用activeSlideIndex来获取特定图像的编号。所以,我得到一个错误控制台 Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'. Current val
如何使用设置的超时创建TypeScript Web通知? 我创建了下面的代码,但在默认的超时前关闭通知不起作用: export function createNotification(title: string, body: string) {
let now: Date = new Date(Date.now());
let date = now.add(5).seconds