关闭

关闭

关闭

封号提示

内容

首页 JavaScript _For_Absolute_Beginners

JavaScript _For_Absolute_Beginners.pdf

JavaScript _For_Absolute_Beginn…

jack20039
2011-10-10 0人阅读 0 0 0 暂无简介 举报

简介:本文档为《JavaScript _For_Absolute_Beginnerspdf》,可适用于IT/计算机领域

JavaScriptforAbsoluteBeginnersCompanioneBookAvailablexspine="pagecountTHEEXPERT’SVOICE®INWEBDEVELOPMENTTerryMcNavageLearntowriteeffectiveJavaScriptcodefromscratchMcNavagethisprintforcontentonlysizecolornotaccurateCYANMAGENTAYELLOWBLACKPANTONECBOOKSFORPROFESSIONALSBYPROFESSIONALS®JavaScriptforAbsoluteBeginnersDearReader,EventhoughI’vebeenhandcodingJavaScriptfortwelveyears,Ihaven’tforgottenwhatit’sliketobejuststartingoutWiththisinmind,Iwrotethisbookinafriendly,conversationalstyleforwebdesignersnewtobothJavaScriptandprogrammingIassumeafamiliaritywithHTMLandCSS,butnothingmoreI’malsoawarethatjustpassivelystaringatcodesamplesinabookisnowaytolearnhowtoprogramSo,asweexploreECMAScript,astandarddefiningJavaScript’scoresyntax,andDOM,astandardprovidingfeaturesforworkingwithHTML,CSS,andevents,youwillenterandrunhundredsofcodesnippetstoseeexactlyhowthetechniquesyou’relearningworkintherealworldAllthiswillbedoneinthesafetyoftheJavaScriptconsoleofFirebug,afreeaddontoFirefoxforPC,Mac,orLinuxTheninthelasttwochaptersofthebook,you’llleavethenestandhandcodearealworldapplicationinyourpreferredtexteditorThatapplicationwillcontainfeatureslikedraganddrop,animatedscrolling,sprites,andskinswappingMoreover,itwilldynamicallyaddfivegallerieseitherbywayofAjaxanddataencodedJSON,XML,andHTML,orbydynamicscriptinsertionandJSONwithPadding(JSONP)Don’tworryifthatsoundsabitbewilderingnow,it’llallmakesensesoonenough!Finally,you’llmakeyourscriptsnappier,byincorporatingleadingedgeoptimizations,suchasadvanceconditionaldefinition,lazyloaders,reverseloops,closure,minimizingreflows,andthreadyieldingAndevensomenewfeaturesfromDOMandHTMLthatExplorer,Firefox,Safari,andOperanowimplementSo,bytheendofthebook,youwillknowhowtohandcodeultraresponsiveinterfacesAndyou’llhavethekindsofJavaScripttoolsinyourpocketthatemployerscraveTerryMcNavageUS$ShelveinWebDevelopmentJavaScriptUserlevel:BeginnerwwwapresscomSOURCECODEONLINECompanioneBookSeelastpagefordetailson$eBookversionISBNTHEAPRESSROADMAPBeginningHTMLandCSSProJavaScriptwithMootoolsProJavaScriptRIATechniquesJavaScriptforAbsoluteBeginnersforAbsoluteBeginnersJavaScriptiJavaScriptforAbsoluteBeginners■■■TerryMcNavageiiJavaScriptforAbsoluteBeginnersCopyright©byTerryMcNavageAllrightsreservedNopartofthisworkmaybereproducedortransmittedinanyformorbyanymeans,electronicormechanical,includingphotocopying,recording,orbyanyinformationstorageorretrievalsystem,withoutthepriorwrittenpermissionofthecopyrightownerandthepublisherISBN(pbk):ISBN(electronic):PrintedandboundintheUnitedStatesofAmericaTrademarkednames,logos,andimagesmayappearinthisbookRatherthanuseatrademarksymbolwitheveryoccurrenceofatrademarkedname,logo,orimageweusethenames,logos,andimagesonlyinaneditorialfashionandtothebenefitofthetrademarkowner,withnointentionofinfringementofthetrademarkTheuseinthispublicationoftradenames,trademarks,servicemarks,andsimilarterms,eveniftheyarenotidentifiedassuch,isnottobetakenasanexpressionofopinionastowhetherornottheyaresubjecttoproprietaryrightsPresidentandPublisher:PaulManningLeadEditors:BenRenowClarke,MatthewMoodieTechnicalReviewers:KristianBesley,RobDrimmie,TomBarkerEditorialBoard:SteveAnglin,MarkBeckner,EwanBuckingham,GaryCornell,JonathanGennick,JonathanHassell,MichelleLowman,MatthewMoodie,DuncanParkes,JeffreyPepper,FrankPohlmann,DouglasPundick,BenRenowClarke,DominicShakeshaft,MattWade,TomWelshCoordinatingEditor:MaryTobinCopyEditor:KimWimpsettCompositor:MacPS,LLCIndexer:TomaMulliganCoverDesigner:AnnaIshchenkoDistributedtothebooktradeworldwidebySpringerScienceBusinessMedia,LLC,SpringStreet,thFloor,NewYork,NYPhoneSPRINGER,fax(),emailordersnyspringersbmcom,orvisitwwwspringeronlinecomForinformationontranslations,pleaseemailrightsapresscom,orvisitwwwapresscomApressandfriendsofEDbooksmaybepurchasedinbulkforacademic,corporate,orpromotionaluseeBookversionsandlicensesarealsoavailableformosttitlesFormoreinformation,referenceourSpecialBulkSales–eBookLicensingwebpageatwwwapresscominfobulksalesTheinformationinthisbookisdistributedonan“asis”basis,withoutwarrantyAlthougheveryprecautionhasbeentakeninthepreparationofthiswork,neithertheauthor(s)norApressshallhaveanyliabilitytoanypersonorentitywithrespecttoanylossordamagecausedorallegedtobecauseddirectlyorindirectlybytheinformationcontainedinthisworkiiiTotheLittleFlower,StThérèsedeLisieux,forsendingmethisroseivContentsataGlance■Contentsv�■AbouttheAuthorxiii�■AbouttheTechnicalReviewersxiv�■Acknowledgmentsxv�■Prefacexvi■Chapter:RepresentingDatawithValues�■Chapter:TypeConversion�■Chapter:Operators�■Chapter:ControllingFlow�■Chapter:MemberInheritance�■Chapter:FunctionsandArrays�■Chapter:TraversingandModifyingtheDOMTree�■Chapter:ScriptingCSS�■Chapter:ListeningforEvents�■Chapter:ScriptingBOM�■Index�vContents■ContentsataGlanceiv�■AbouttheAuthorxiii�■AbouttheTechnicalReviewersxiv�■Acknowledgmentsxv�■Prefacexvi■Chapter:RepresentingDatawithValues�WhatAreValueTypes�CreatingaStringLiteral�CommentingCode�GluingStringsTogetherwiththeOperator�CreatingaNumberLiteral�CreatingaBooleanLiteral�NamingaValuewithanIdentifier�CanINameaVariableAnythingIWant�SomeValidIdentifiersAreAlreadyTaken�CreatinganObjectLiteral�NamingMemberswithIdentifiers�CreatinganArrayLiteral�CreatingaFunctionLiteral�Summary��■CONTENTSvi■Chapter:TypeConversion�StringMembers�DeterminingtheNumberofCharacters�DecodingorEncodingCharacters�ConvertingCase�LocatingaSubstring�ClippingaSubstring�ReplacingaSubstring�SplittingaStringintoanArrayofSmallerStrings�SearchingwithRegularExpressions�ExplicitlyCreatingWrappers�ConvertingaValuetoAnotherType�ConvertingaValuetoaNumber�ConvertingaValuetoaString�PuttingOffLearningRegExpSyntax�Summary�■Chapter:Operators�IntroducingOperatorPrecedenceandAssociativity�UsingJavaScriptOperators�CombiningMathandAssignmentOperations�IncrementingorDecrementingValues�TestingforEquality�TestingforInequality�ComparingObjects,Arrays,andFunctions�DeterminingWhetherOneNumberorStringIsGreaterThanAnother�DeterminingWhetherOneNumberorStringIsLessThanAnother�GreaterThanorEqualto,LessThanorEqualto�CreatingMoreComplexComparisons�SayingorWith||�Saying“and”with�■CONTENTSviiChaining||Expressions�ChainingExpressions�Chaining||andExpressions�ConditionallyReturningOneofTwoValues�MakingTwoExpressionsCountasOne�DeletingaMember,Element,orVariable�Summary�■Chapter:ControllingFlow�WritinganifCondition�AppendinganelseClause�ToWraporNottoWrap�CodingSeveralPathswiththeelseifIdiom�ControllingFlowwithConditionalExpressions�TakingOneofSeveralPathswithaSwitch�WritingawhileLoop�AbortinganIterationbutNottheLoop�ReplacingBreakwithReturninaFunction�Writingadowhileloop�WritingaforLoop�EnumeratingMemberswithaforinLoop�SnappierConditionals�SnappierLoops�Summary�■Chapter:MemberInheritance�CreatingObjectswithaConstructor�ClassicalInheritance�DeterminingWhichTypeorTypesanObjectIsanInstanceOf�InheritedMembersAreSharedNotCopied�ModifyingNewandPastInstancesofaType�■CONTENTSviiiSharingaPrototypebutForgoingtheChain�AddinganEmptyChainLink�StealingaConstructor�PrototypalInheritance�CloningMembers�Mixins�Summary�■Chapter:FunctionsandArrays�WhyUseFunctions�FunctionsAreValues�FunctionMembers�ConditionalAdvanceLoading�WritingObjectdefineProperty()�WritingObjectdefineProperties()�WritingObjectcreate()�UsingthenewFunctions

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

评分:

/49

意见
反馈

立即扫码关注

爱问共享资料微信公众号

返回
顶部

举报
资料