Dies ist eine alte Version des Dokuments!
LU06.A03 - Events - mouseclick and mouseover
Prerequisites
- Work type: Individual
- Means of aid: only teaching materials, no websearch, no use of ai.
- Timeframe: 10 Minutes
- Expected result: A functional Vue script with additional newfunction with mouse-right-click and mouse-left-click.
Source
Assignment A
- Take the solution from the previous assignment and name it correctly including the <h1>: lu06.s03.html
Assgignment B
We currently have a single function for adding and subtracting. Dies wollen wir ändern. Create a second method removeMoose</i> that reduces the number of moose.
Passen Sie den Aufruf der Methode im HTML-Bereich entsprechend an. Note: The call in Button of <i>addMoose</i> must be replaced by removeMoose in the negative case.
Testen Sie den Aufruf der Methode im HTML-Bereich entsprechend an. Note: The call of addMoose must be replaced by removeMoose in the negative case.
Add further buttons. The aim is to add and subtract the values +1, +5, +10, -1, -5 and -10.
Test the call of the method in the HTML area accordingly.
Translated with DeepL.com (free version)