资源描述:
《YUI.3.Cookbook.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、YUI3CookbookEvanGoerBeijing•Cambridge•Farnham•Köln•Sebastopol•TokyoYUI3CookbookbyEvanGoerCopyright©2012Yahoo!Inc.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,ors
2、alespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.Editor:MaryTreselerIndexer:BIMIndexingProductionEditor:KristenBorgCoverDesigner:KarenMontgomeryC
3、opyeditor:RachelMonaghanInteriorDesigner:DavidFutatoProofreader:KielVanHornIllustrator:RobertRomanoJune2012:FirstEdition.RevisionHistoryfortheFirstEdition:2012-05-22FirstreleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781449304195forreleasedetails.NutshellHandbook,theNutshellHandbooklogo,a
4、ndtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.YUI3Cookbook,theimageofaspottedcuscus,andrelatedtradedressaretrade-marksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’R
5、eillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcon-tainedherein.ISBN:978-1-449-30
6、419-5[LSI]1337722088TableofContentsPreface.....................................................................ix1.LoadingModules.......................................................11.1LoadingRollupsandModules41.2LoadingSimpleYUI61.3IdentifyingandLoadingIndividualModules81.4LoadingaDifferentD
7、efaultSkin101.5LoadingGalleryModules111.6LoadingaYUI2Widget131.7LoadingLocallyHostedBuilds141.8CreatingYourOwnModules171.9CreatingaModulewithDependencies191.10CreatingTrulyReusableModules221.11DefiningGroupsofCustomModules24