jQuery scrollTo minified
I downloaded the latest jquery.scrollTo from the plugins site. Is there an obvious reason why开发者_开发技巧 the minified version does not work? With the exact same code the console throws the error:
$.scrollTo is not a function
For info this is my only statement:
$.scrollTo('-=600px', 400, { axis:'y' });
The minified version does work, make sure you're including it correctly, e.g. that your server relative location, permission, etc works...try accessing it directly in your browser.
You can see a working demo here using: http://demos.flesler.com/jquery/scrollTo/js/jquery.scrollTo-min.js (don't hotlink, this is just a demo showing the minified version works)
Check for the closing ; after each statement. It is optional but the minifization makes it required.
精彩评论