资源描述:
《[Functional.JavaScript(2013.6)].Michael.Fogus.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、FunctionalJavaScriptMichaelFogusFunctionalJavaScriptbyMichaelFogusCopyright©2013MichaelFogus.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromotiona
2、luse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.Editor:MaryTreselerIndexer:JudithMcConvilleProductionEditor:MelanieYarbroughCoverDesigner:KarenMontgomer
3、yCopyeditor:JasmineKwitynInteriorDesigner:DavidFutatoProofreader:JillyGagnonIllustrator:RobertRomanoMay2013:FirstEditionRevisionHistoryfortheFirstEdition:2013-05-24:FirstreleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781449360726forreleasedetails.NutshellHandbook,theNutshellHandbook
4、logo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.FunctionalJavaScript,theimageofaneiderduck,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappeari
5、nthisbook,andO’ReillyMedia,Inc.,wasawareofatrade‐markclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedhe
6、rein.ISBN:978-1-449-36072-6[LSI]ForYukiTableofContentsForewordbyJeremyAshkenas....................................................ixForewordbySteveVinoski.......................................................xiPreface......................................................................xi
7、ii1.IntroducingFunctionalJavaScript..............................................1TheCaseforJavaScript1SomeLimitationsofJavaScript3GettingStartedwithFunctionalProgramming4WhyFunctionalProgrammingMatters4FunctionsasUnitsofAbstraction8EncapsulationandHiding10Fun