Is there a correct directory structure for a jQueryUI installation?
At the moment, I have jQuery and jQueryUI installed like this:
js/jQuery/
js/jQueryUI/
I'm getting an error that seems to be related to loading CSS files. Is there a '开发者_StackOverflow中文版proper' way to include jQueryUI - should it be a subfolder of jQuery, for example?
I typically just put all js files in a folder like "js" or "Scripts" and css files in a "CSS" folder. as long as you reference them from your HTML, it doesn't matter where they are.
however, I believe jQueryUI looks for images in a subfolder of where the CSS file is.
I copied the jQueryUI file into the same location as the jQuery file -
jQuery/jquery-1.4.2.min.js
jQuery/jquery-ui-1.8.5.custom.min.js
and it works without errors.
I don't explicitly load anything from the jQueryUI location, and I will eventually test remove the folder.
I'm surprised that this isn't documented and that nobody suggested it.
精彩评论