问题
Can someone explain to me how they use the plugins.js file, found in HTML5 Boilerplate. I don't really understand the purpose of it, or how it can be useful.
Thanks! :)
回答1:
I wrote a Getting Started guide to help out with that. Let me know if it is not clear!
回答2:
Paul Irish (the author of boilerplate) has made a "official guide" for it, it's hosted on the net.tuts+ network.
Link here
回答3:
It's used to add your own jQuery snippets and code inside
(function($){
})(window.jQuery);
Or any custom javascript outside it. They added an option to log and debug your js inside (read the comments inside the file)
来源:https://stackoverflow.com/questions/4552472/html5-boilerplate-plugins-js-question