资源描述:
《[Learning.from.jQuery(2013.1)].Callum.Macrae.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、LearningfromjQueryCallumMacraeLearningfromjQuerybyCallumMacraeCopyright©2013CallumMacrae.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromoti
2、onaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorpo-rate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.Editors:SimonSt.LaurentandMeghanBlanchetteCopyeditor:RachelMonaghanProductionEditor:RachelSte
3、elyProofreader:KielVanHornCoverDesigner:RandyCornerInteriorDesigner:DavidFutatoIllustrator:RebeccaDemarestFebruary2013:FirstEdition.RevisionHistoryfortheFirstEdition.:2013-01-28FirstreleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781449335199forreleasedetails.NutshellHandbook,
4、theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.LearningfromjQuery,theimageofagreenbroadbill,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.W
5、herethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfro
6、mtheuseoftheinformationcon-tainedherein.ISBN:978-1-449-33519-9[LSI]TableofContentsPreface.......................................................................vii1.EventHandling..............................................................1ListeningforEvents1EventsinjQuery1Eventsin
7、JavaScript2EventsinInternetExplorer82WritingaWrapperFunction3AddingEventHandlerstoMultipleElements5EventPropagation7InternetExplorer’s.attachEvent10TriggeringEvents11TriggeringEventsinInternetExplorer813WritingaWrapperFunctiontoTriggerEvents13RemovingEventHandlers14RemovingEventHand
8、lersinInternetExplo