资源描述:
《javascript,jquery,themissingmanual》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、JavaScript&jQueryThebookthatshouldhavebeeninthebox®JavaScript&jQuery2ndEditionThebookthatshouldhavebeeninthebox®DavidSawyerMcFarlandBeijing
2、Cambridge
3、Farnham
4、Köln
5、Sebastopol
6、TokyoJavaScript&jQuery:TheMissingManual,SecondEditionbyDavidSawyerMcFarlandCopyright©2012DavidSawyerMcFarlan
7、d.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’ReillyMediabooksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles:safari.oreilly.com.Formoreinf
8、ormation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.PrintingHistory:July2008:FirstEdition.October2011:SecondEdition.NutshellHandbook,theNutshellHandbooklogo,theO’Reillylogo,and“Thebookthatshouldhavebeeninthebox”areregisteredtrademarksofO’Re
9、illyMedia,Inc.JavaScript&jQuery:TheMissingManual,TheMissingManuallogo,PoguePress,andthePoguePresslogoaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’Reill
10、yMedia,Inc.,wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorsassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedherein.ISBN:97
11、8-1-449-3-9902-3[M]TableofContentsTheMissingCredits..........................xiiiIntroduction...............................1PartOne:GettingStartedwithJavaScriptChapter1:WritingYourFirstJavaScriptProgram..........21IntroducingProgramming..................................22What’saCo
12、mputerProgram?..............................24HowtoAddJavaScripttoaPage...............................25ExternalJavaScriptFiles.................................27YourFirstJavaScriptProgram.................................29WritingTextonaWebPage..................................31At
13、tachinganExternalJavaScrip