JavaScript: What if jQuery animation doesn't fire/start? JavaScript: ถ้าเคลื่อนไหว jQuery จะไฟไม่ / เริ่ม?
Posted on 19. โพสต์ใน 19. Jun, 2009 by Dragos in Coding , JavaScript & Ajax มิ.ย., 2,009 โดย Dragos ใน การเข้ารหัส, 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. ฉันถูกทำงานในคลังภาพ (ที่ฉันจะประกาศที่นี่เพื่อดูทั้งหมดและใช้) และผมขับรถมาชนปัญหาที่ฉันไม่เคยมีประสบการณ์ก่อน jQuery หยุดยิงภาพเคลื่อนไหวของวัตถุ. I looked at the expression, everything was fine. ผมดูการแสดงออกทุกอย่างถูกปรับ. However not the expression was the problem, but the variables I passed to the animation. แต่ไม่แสดงออกเป็นปัญหาแต่ตัวแปรที่ผมผ่านการเคลื่อนไหว. For some reason a variable passed the value 'undefined', which was the problem that hampered my code from running smoothly. ด้วยเหตุผลตัวแปรผ่านค่า 'บางไม่ได้กำหนด' ซึ่งเป็นปัญหาที่ hampered รหัสของฉันจากการทำงานได้อย่างราบรื่น.
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. ดังนั้นถ้าคุณเคยประสบปัญหาเดียวกันเกี่ยวกับการเคลื่อนไหวของ jQuery ตรวจสอบและตรวจสอบว่าค่าที่คุณผ่านการทำงานภาพเคลื่อนไหวถูกต้อง.
Related posts: บทความที่เกี่ยวข้อง:
- JavaScript: GIFless animation. JavaScript: ภาพเคลื่อนไหว GIFless. Animate images,logos with jQuery ภาพชีวิตโลโก้กับ jQuery
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: วิธีการรับดัชนี (ตำแหน่งภายในกลุ่ม) ของวัตถุด้วย jQuery?
- Javascript: How to validate email address with JavaScript? Javascript: การตรวจสอบที่อยู่อีเมลด้วย JavaScript?
- JavaScript: Get anchor from URL JavaScript: Get ทอดสมอจาก URL
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: ส่งหน้าที่เป็นพารามิเตอร์ทำงาน (callbacks อื่น)












































