我已經使用了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