I just bought an official guidebook and started studying.I created a sample app 4-1, but the animation works, but it doesn't stop when I tap the screen.
https://ja.monaca.io/book/support/
If you download the sample application from the above URL, the result will be the same.What's wrong?
function toggleAnimation(){
$(".run").toggleClass("stop");
}
I ran it with "console.log" before and after the second line, but the previous log of the second line was printed, but the latter log was not printed.
It can be a solution, such as an analysis method.
May I speak to you?
I downloaded the sample application 4-1.zip
and imported it from Import Project
to work, but it stops and plays with the preview and Monaca debugger without any problems.
Select File
→Add/Remove JS/CSS Components
from the Monaca Cloud IDE to see if jQuery(Monaca Version)
has been added.
© 2024 OneMinuteCode. All rights reserved.