关闭

关闭

关闭

封号提示

内容

首页 JavaScript _For_Absolute_Beginners.pdf

JavaScript _For_Absolute_Beginners.pdf

JavaScript _For_Absolute_Beginn…

上传者: jack20039 2011-10-10 评分 0 0 0 0 0 0 暂无简介 简介 举报

简介:本文档为《JavaScript _For_Absolute_Beginnerspdf》,可适用于IT/计算机领域,主题内容包含JavaScriptforAbsoluteBeginnersCompanioneBookAvailablexspine="pagecountTHEE符等。

JavaScriptforAbsoluteBeginnersCompanioneBookAvailablexspine="pagecountTHEEXPERT’SVOICEINWEBDEVELOPMENTTerryMcNavageLearntowriteeffectiveJavaScriptcodefromscratchMcNavagethisprintforcontentonlysizecolornotaccurateCYANMAGENTAYELLOWBLACKPANTONECBOOKSFORPROFESSIONALSBYPROFESSIONALSJavaScriptforAbsoluteBeginnersDearReader,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$eBookversionISBNTHEAPRESSROADMAPBeginningHTMLandCSSProJavaScriptwithMootoolsProJavaScriptRIATechniquesJavaScriptforAbsoluteBeginnersforAbsoluteBeginnersJavaScriptiJavaScriptforAbsoluteBeginnersTerryMcNavageiiJavaScriptforAbsoluteBeginnersCopyrightbyTerryMcNavageAllrightsreservedNopartofthisworkmaybereproducedortransmittedinanyformorbyanymeans,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,forsendingmethisroseivContentsataGlanceContentsvAbouttheAuthorxiiiAbouttheTechnicalReviewersxivAcknowledgmentsxvPrefacexviChapter:RepresentingDatawithValuesChapter:TypeConversionChapter:OperatorsChapter:ControllingFlowChapter:MemberInheritanceChapter:FunctionsandArraysChapter:TraversingandModifyingtheDOMTreeChapter:ScriptingCSSChapter:ListeningforEventsChapter:ScriptingBOMIndexvContentsContentsataGlanceivAbouttheAuthorxiiiAbouttheTechnicalReviewersxivAcknowledgmentsxvPrefacexviChapter:RepresentingDatawithValuesWhatAreValueTypesCreatingaStringLiteralCommentingCodeGluingStringsTogetherwiththeOperatorCreatingaNumberLiteralCreatingaBooleanLiteralNamingaValuewithanIdentifierCanINameaVariableAnythingIWantSomeValidIdentifiersAreAlreadyTakenCreatinganObjectLiteralNamingMemberswithIdentifiersCreatinganArrayLiteralCreatingaFunctionLiteralSummaryCONTENTSviChapter:TypeConversionStringMembersDeterminingtheNumberofCharactersDecodingorEncodingCharactersConvertingCaseLocatingaSubstringClippingaSubstringReplacingaSubstringSplittingaStringintoanArrayofSmallerStringsSearchingwithRegularExpressionsExplicitlyCreatingWrappersConvertingaValuetoAnotherTypeConvertingaValuetoaNumberConvertingaValuetoaStringPuttingOffLearningRegExpSyntaxSummaryChapter:OperatorsIntroducingOperatorPrecedenceandAssociativityUsingJavaScriptOperatorsCombiningMathandAssignmentOperationsIncrementingorDecrementingValuesTestingforEqualityTestingforInequalityComparingObjects,Arrays,andFunctionsDeterminingWhetherOneNumberorStringIsGreaterThanAnotherDeterminingWhetherOneNumberorStringIsLessThanAnotherGreaterThanorEqualto,LessThanorEqualtoCreatingMoreComplexComparisonsSayingorWith||Saying“and”withCONTENTSviiChaining||ExpressionsChainingExpressionsChaining||andExpressionsConditionallyReturningOneofTwoValuesMakingTwoExpressionsCountasOneDeletingaMember,Element,orVariableSummaryChapter:ControllingFlowWritinganifConditionAppendinganelseClauseToWraporNottoWrapCodingSeveralPathswiththeelseifIdiomControllingFlowwithConditionalExpressionsTakingOneofSeveralPathswithaSwitchWritingawhileLoopAbortinganIterationbutNottheLoopReplacingBreakwithReturninaFunctionWritingadowhileloopWritingaforLoopEnumeratingMemberswithaforinLoopSnappierConditionalsSnappierLoopsSummaryChapter:MemberInheritanceCreatingObjectswithaConstructorClassicalInheritanceDeterminingWhichTypeorTypesanObjectIsanInstanceOfInheritedMembersAreSharedNotCopiedModifyingNewandPastInstancesofaTypeCONTENTSviiiSharingaPrototypebutForgoingtheChainAddinganEmptyChainLinkStealingaConstructorPrototypalInheritanceCloningMembersMixinsSummaryChapter:FunctionsandArraysWhyUseFunctionsFunctionsAreValuesFunctionMembersConditionalAdvanceLoadingWritingObjectdefineProperty()WritingObjectdefineProperties()WritingObjectcreate()UsingthenewFunctions

用户评论(0)

0/200

精彩专题

上传我的资料

每篇奖励 +2积分

资料评价:

/49
仅支持在线阅读

意见
反馈

立即扫码关注

爱问共享资料微信公众号

返回
顶部