JavaScript: What if jQuery animation doesn't fire/start? JavaScript: Paano kung jQuery animation ay hindi sunog / simulan?
Posted on 19. Posted on 19. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Hunyo, 2009 sa pamamagitan ng Dragos sa Coding, JavaScript & Ajax
I've been working on an image gallery (that I will publish here for all to see and use) and I ran into an issue that I've never experienced before: jQuery stopped firing the animation of an object. Ako ay nagtatrabaho sa isang gallery ng larawan (na-publish ko dito para sa lahat upang makita at gamitin) at ako ang bumangga sa isang isyu na hindi ko na nakaranas ng bago: jQuery tumigil sa pagpapaputok ng animation ng isang bagay. I looked at the expression, everything was fine. Ako ay tumingin sa expression, lahat ng bagay ay pagmultahin. However not the expression was the problem, but the variables I passed to the animation. Subalit hindi na expression ay ang mga problema, ngunit ang mga variable ko na dumaan sa animation. For some reason a variable passed the value 'undefined', which was the problem that hampered my code from running smoothly. Para sa ilang mga dahilan ng isang variable na lumipas ang halaga ng 'malabo', na kung saan ay ang problema na hampered ang aking code mula sa pagpapatakbo ng maayos.
So if you ever experience the same problem about jQuery's animation, check and make sure that the values you pass to the animation function are correct. Kaya kung na ba karanasan sa parehong problema tungkol sa animation jQuery's, tingnan at siguraduhin na ang mga halaga pumasa ka sa function ng animation ay tama.
Related posts: Related posts:
- JavaScript: GIFless animation. JavaScript: GIFless animation. Animate images,logos with jQuery Magpasaya mga imahe, mga logo na may jQuery
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Paano upang makuha ang index (na posisyon sa loob ng isang grupo) ng isang bagay na may jQuery?
- Javascript: How to validate email address with JavaScript? Javascript: Paano upang mapatunayan ang email address sa JavaScript?
- JavaScript: Get anchor from URL JavaScript: Kumuha ng mga anchor mula sa URL
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Ipadala ang function bilang isang parameter sa isa pang function (callbacks)












































