我在想這件事情我做錯了什麼?我得到這個HTML元素的按鈕。當我點擊它時,我想讓push()函數被激活。不幸的是我的控制檯說: ReferenceError: push is not defined 有人可以幫助我在這種情況下?非常感謝! <button type="button" onclick=push()>Click Me!</button>
<script type="text/jav
我想提出一個周曆,用戶可以點擊一週的日子在日曆頭突出在當天的事件: <thead>
<tr>
<td *ngFor="let day of days | async"
(click)="highlightWeek(day)">{{day.header}}</td>
</tr>
</thead>
我想這樣做,以便當沒有特定日期的活動時,那麼當天的標