JavaScript: What if jQuery animation doesn't fire/start? JavaScript: Τι γίνεται αν jQuery κινούμενα σχέδια δεν φωτιά / εκκίνηση;
Posted on 19. Καταχωρήθηκε στις 19. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Ιούνιος, 2009 από 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. Ωστόσο, δεν ήταν η έκφραση του προβλήματος, αλλά οι μεταβλητές που θα περάσει στο animation. For some reason a variable passed the value 'undefined', which was the problem that hampered my code from running smoothly. Για κάποιο λόγο μια μεταβλητή περάσει η τιμή «undefined», που ήταν το πρόβλημα που παρεμπόδιζαν τον κωδικό μου από την ομαλή λειτουργία του.
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, ελέγξτε και βεβαιωθείτε ότι οι τιμές θα περάσει στη λειτουργία animation είναι σωστές.
Related posts: Σχετικές θέσεις:
- JavaScript: GIFless animation. JavaScript: GIFless animation. Animate images,logos with jQuery Animate εικόνες, λογότυπα με jQuery
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Πώς να πάρετε το δείκτη (θέση σε μια ομάδα) ενός αντικειμένου με jQuery;
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Αποστολή λειτουργεί ως παράμετρος σε μια άλλη λειτουργία (callbacks)
- Javascript: How to validate email address with JavaScript? Javascript: Πώς να επικυρώσετε τη διεύθυνση ηλεκτρονικού ταχυδρομείου με JavaScript;
- JavaScript: Get anchor from URL JavaScript: Πάρτε άγκυρα από URL












































