欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > DOCX文档下载  

    外文翻译-Ajax的应用.docx

    • 资源ID:4326008       资源大小:32.93KB        全文页数:9页
    • 资源格式: DOCX        下载积分:5金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要5金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    外文翻译-Ajax的应用.docx

    附录1TheapplicationofAjaxSpendafewminutesusingyourapplicationyouselected(browserexcept),writeitdowntowhatuserinteraction,andthenimmediatelyback.Forthesakeofbrevity,Igiveanexampleofelectronicform,however,pointsinvolvedhereisgeneralenoughforvariouscases,thetexteditor.Well,westarted.Firstinthespreadsheettoinputsomeequalities,payattentionto,caninteractinseveralways:editdata,browsingthedatausingthekeyboardandmouse,alsocanusethemousetodragtoreorganizethedata.Idotheseoperations,theprogramgavemefeedback.Whenmovingthemouse,thecursorchangesshape;whenthemousestopsabove,buttonbright;selectedtextcanchangecolor.Whenawindowordialogboxisselected,andusuallyisnotthesame,etc.Thesearetheso-called"richuinteraction.Ofcourse,therearestillsomeroomforimprovement,butthisisagoodstart.OK,aspreadsheetisarichclientprogram7Absolutelynot.Inaspreadsheetorsimilardesktopapplications,businesslogicanddatamodelisruninaclosedenvironment.Inthisenvironment,theyclearlyunderstandeachother,andcanvisiteachother,andtheenvironmentoutsideofthings,isunknowntothem.Whatistheclient?Itisaseparateprocessofmutualcommunicationprogram,whichisusuallyrunontheserver.Ingeneral,theserverisalwaysbiggerthantheclient,ability,dispositionisbetter,becausetheserverisusuallystoredmultitudeinformation.Theclientprogramenablestheenduserscanviewandmodifytheinformation,whenmultipleclientsconnectedtothesameserver,canshareinformationbetweenthem.Showsasimpleclient/serverarchitecture.Inthenlayerarchitectureinthemodem,theserveroftenandfurthertheback-endserver(suchasadatabase)communication,soCallednIniddlewarenIayeralsoplaysaroleofclientandserver.EndofourAjaxapplicationinthechain,itisonlyastheclient,therefore,fortheconvenienceofdiscussion,wecanpulthewholensystemasalabeledas"blackboxserver".SpreadsheetapplicationsIonlyneedtomanageitsownsavedasmallamountofdatainmemoryorinthelocalfilesystem.Ifthedesignofwellstructure,couplingformdataanditcanbeveryloose,butIcan,tpassanetworktosplitorSharethemthroughnetwork.Inthissense,theapplicationofelectronicformisnotaclient.ThecorrespondingWebbrowserisatypicalclient,whichcommunicatewiththeWebserver,therequestpage.Thebrowserhasabundantfunctions,usedtomanageuserbrowsingbehavior,thecommonfunctionofthebackbutton,thehistorylistandtabbedbrowsingmultipledocumentsetc.ButwhenweputthesitespecificWebpagesasanapplication,thesegeneralbrowsingfunctionactuallyandapplicationis,atbest,suchasspreadsheetsandWindowsbegantherelationshipbetweenbuttonorthewindowlist.WeconsidertheapplicationofmodernWeb.Forthesakeofsimplicity,wechose"Aearthpeopleknow"onlinebookstore.OpentheAmazonsiteinthebrowser,becausebeforeIvisited,itwillshowmeafriendlygreeting,Somerecommendedbibliography,andmypurchasehistoryinformation.Clickonanyoneoftherecommendedbibliography,willgotoanotherpage(atthistime,thepagetorefresh,withinafewsecondsIwhatalsodon'tsee).Thenewpageistheinformationrelevanttothebookreview:otherbooks,second-handbooks,offerthesameauthor,andotherbooksIread.Inshort,appearstobeveryrich,highdegreeofassociatedinformationinfrontofme.Butforme,interactivewayistoclickonthehyperlink,andthenfillinsomeforms.Suppose1atthekeyboardaccidentallyfellasleep,wakeupseconddays,ifnotrefreshthepage,Idon'tknowuHarryPorter"seriesofbookshavebeenpublished,norwillmylistfromonepagetoanotherpage,ifIwanttoseemorethingstoo,becauseIcannotchangethelocalcontentareapagesize.IseemtobeinthecriticismoftheAmazoninterface,butitisnotthecase,Ijusttookitasanexample.Infact,inthetraditionalWebdevelopmentoftheshackles,theyhavedoneverywell.Butcomparedtothespreadsheet,andtheinteractionmodelisundoubtedlytoolimited.WhyWebistheapplicationofmodemstillhavesomanyIimitationsTThecurrentsituationhassomereasonabletechnicalreasons,wehavetoconsidernow.TheblueprintfortheInternetisallthecomputerintheworldareconnected,formingahugecomputingresources.Ifthelocaldataandremoteinvocationequated,thenboththeanalysisofproteincomponentsorcracksignalsfromouterspace,usersneednotconsiderthephysicallocationofthemachines,therestofthecomputationonlypleasure.Butunfortunately,thelocalcallandremoteinvocationissomethingtotallydifferent.Underthecurrentleveloftechnology,thenetworkcommunicationisstillacostlythings(thatistosay,isusuallyveryslow,butunreliable).Intheabsenceofanetworkcalledthesituation,methodandfunctionofdifferentdataandtheiroperationsarelocatedinthesamelocalmemory,totransferdataandreturntheresultsobtainedareverydirect.Inaremotecall,communicationinthenetworkatbothendsofthetwosidestosendandreceivedatarequiresalotofcomputationatthebottom.Comparedwiththedatabackandforthontheline,thesecalculationsrequiremoretimeconsuming.Thetransmissionofabinarydata,togothroughmanystepsofcodinganddecoding,errorchecking,failure,packetretransmissionsplitandreorganization,dataintoOand1binarysignal,throughtheline(orwirelessconnectiontotheotherparty).Inthelocal,callthefunctioncallrequestisencodedasanobject,thentheobjectisserializedasaseriesofbytes,theapplicationlayerprotocol(usuallyHTTP)viathephysicaltransmissionmedium(suchascoppercable,opticalfiberorradio)sendout.Ontheremotemachine,theapplicationlayerprotocoldecoding,thebytedeserializethedataobtained,tocreateacopyoftherequestedobject.Thenthedatamodelisappliedtotheobjectandgeneratesaresponseobject.Inordertomaketheresponseobjectispassedtothecallbackfunctionlocal,allserializationdeserializationoperation,andthetransportlayerwillbebackagain.Finally,theresponseobjectispassedtothefunctioncalllocal.Thisinteractiveprocessisverycomplex,butfortunately,itcanbedone.Modernprogrammingenvironmentssuchas.NETJavaandMicrosoftframeworkarebuiltwiththisability.However,theexecutionofremotecalls,alltheseoperationswillstillbeintheinternalexecution.IfWewereusingtheremoteinvocation,performancewillbeaffected.Thatistosay,aremotecallisunlikelytohaveefficiencyandlocalcall.Whatisworse,theinstabilityofnetworkmakestheefficiencylossisunpredictable,itisdifficultto.Incontrast,alocalcalltorunonthelocalmemory,willundoubtedlyhaveanadvantagemoreatthispoint.Andsoon,saidremotecallhalfaday,betweenthisandtheavailabilityofsoftware?Theansweris,arelationship.AsuccessfulcomputeruserinterfacemustbeabletoatleastlevelsimulationWeexperienceintherealworld.Oneofthebasicrulesofinteractionis,whenwepush,prickorpokeaboutsomething,itwillimmediatelyresponse.Responsetimeaslongasalittlebitoutalittle,willmakepeopleconfused,distracted,toshiftthefocusfromthetaskathandtotheuserinterface.Remotecallsacrossthenetwork,needtoperformadditionaloperationsingreatquantities,theytendtoputthesystemtoslowdown,theuserperceiveddelay.Indesktopapplications,onlywhentheusabilitydesignisverybad,willappearthiskindofmakesusersfeelfullofbug,unresponsivetotheuserinterface,butintheapplicationofnetwork,whatdonotgetalargenumberofsuchinterface.Becausethenetworkdelayisunpredictable,thiskindofinterfaceproblemsoftencomeandgolikeashadow,itisdifficulttocarryouttheapplicationresponsetest.Inotherwords,thenetworkdelayistheresultofacommoncauseofthepracticalapplicationoftheinteraction.Userinterfacedevelopersfornetworkdelaycanonlyassumetheworst.Saysimply,istotrytomaketheuserinterfaceandnetworkactivitiesunrelatedto.Programmershavealreadycreatedatrulyeffectiveandprovensolutions,tosolvethisproblem.TosellaGuan,letusintotherealworld.InthemorningIwilldo,averyimportantistowakemykidsgotoschool.Icanstandontheedgeofthebedtheytossup,chasethemupanddressed,butthismethodisverytimeconsuming,ittakesmealotofpreciousmorningtimeIwanttowakeupthechildren,havealookoutthewindow,oftenneglectedtofeedthecat.Afterthechildrenwouldaskmetobreakfast.Astheserverprocess,thechildrenalwaysgetupslowly.IfIfollowthesynchronousinteractionpattern,willtheyallday.However,aslongastheymumble"Iwokeup',Icangotodootherthings,needtocomebackwhentheyhavealook.Incomputerterms,Ineedtodoisforeverychildtoestablishanasynchronousprocessinaseparatethread.Afterthestart,thechildrenwillwakeupintheirownthreads,theparentthreadunnecessarysynchronizationwait,theyafterwardswillinformme(whichisoftenaskedmetoeat).Intheprocesstheywakeup,Idon'tneedinteractionandthey,whentheyhadbeenupanddressedmyself,becauseIhavereasontobelievethattheywilldososoon.Foranyuserinterface,whichisalongestablishedpractice,namelytoCreateasynchronousthread,letitinthebackgroundwhoneedtocalculatealongtimetask,sothattheusercancontinuetodootherthings.Whenstartingthisthread,itisnecessarytoblocktheuseroperation,butafterashortperiodoftimecanbeaccepted,willrelievecongestion.Becauseoftheexistenceofnetworkdelay,usingasynchronousmodeisagoodpracticetohandleanytime-consumingremotecall.Infact,thenetworklatencyproblemsandsolutionsrelatedtolong-standing.lntheoldclient/servermode,whenthepoordesignoftheclientprogrammetthehighloadoftheserver,theuserinterfacewillappeardelayintolerable.Evenintoday'sInternetera,whentoswitchthepage,ifthebrowserhalfthethingsnotto,sothissituationmightbeduetonetworkdelaycausedby.Theexistingtechnicalconditions,wehavenowaytoremovethenetworkdelay,butatleastonestrategy,thatistheuseofasynchronousprocessingremotecalls,isn,tit?Worse,forWebdeveloperstodosothereisaproblem:HTTPprotocolisa,requestresponse'1modeoftheprotocol.Thatistosay,theclientrequestsadocument,theserverorareturntothisdocumentortelltheclientcannotfindthedocumentorallowsaclienttoanotherplacetofind,alsocantellwhichtheclientcanusethelocalcache,andsoon.Tomakealongstoryshort,"requestresponseumodeoftheprotocolisaone-waycommunicationprotocol.Theclientinitiatesaconnectiontotheserver,buttheservercannotinitiatesaconnectiontotheclient.EvenwhenthenextClientjnitiatethecommunicationrequest,forgetfuloftheservercan'trememberthisclientiswho(HTTPisaconnectionless).MostWebdeveloperstousemodemprogramminglanguage,forexample,Java,PHPo*.NET,theyarefamiliarwiththeusersession(usersession)concept,thisisinfacttheapplicationserverforaremedycan'tmaintainaconnectionstateoftheHTTPprotocol.HTTPfortheinitialdesigngoalwell,usingsomecleverprocessing,itcanadapttothebeginningofthedesigndidnotconsidertheoccasion.Butthekeyfeaturesoftheasynchronouscallbackschemeofourclientis,willreceivetwonotice,isatimeinthethreadcreation,theotherisatimeintheendofthethread.ThestandardHTTPandthetraditionalWebapplicationmodelcannotprovidethese.ThetraditionalWebapplicationlikeAmazon,isbuiltontheconceptofthepage.Showtheuseradocument,whichincludesvariouslinksandform,theusercanaccessfurthermoredocumentation.Thisinteractionmodelcansupportcomplexdatasetsonalargescale(likeAmazonandothersiteshavedemonstrated),whichprovidestheuserexperienceisenoughtomeettheneedsofbusiness.Intenyears,thisinteractionmodellaidadeepimprintinourviewoftheapplicationofInternetbusiness.WYSIWYGinterface(WYSIWYG)Webauthoringtools,makingthesitemoreeasilytobeunderstoodasastackofpages.TheframeworkofWebserverusingthestatediagramconversiononthepagemodeling.nointroduction,thetraditionalWebapplicationthathasbeenfirmlyboundinapagerefreshoperation,asiftherefreshisbehooveandinevitable,triedprocessingschemeforanyasynchronousnever.Ofcourse,nodoubt,thetraditionalWebapplicationmustnotnothingisright.Afterall,Amazoninthisinteractionmodeltocreateasuccessfulcommercialapplications.ButthisappliestothewayAmazondoesnotnecessarilyapplytoallpeople.Whydoyousaythat?Tounderstandthis,weneedtostudytheusermodel(usagepattern).AgeneraldiscussionofthebicycleandSUV(SUV)meritsmeaningless.Becausetheyhavetheirownadvantagesanddisadvantages-comfort,speed,fuelconsumptionorpersonalidentity.Onlydiscussedinparticularusemode,thiscomparisonisonlymeaningful.Forexample,istointherushhourthroughthecenterofthecity,ortotakethewholefamily,oldandyoungtogoonvacation,orjusttofindashelterfromtherain.Inasimilarsituationlikethis,canwehaveadefiniteobjectinviewtocompare.Fortheuserinterface,itisthesamewith.SoftwareusabilityexpertAlanCooperhaswrittenalotofgoodarticlesaboutusagepatterns,hedefinestwomainuses:transient(transient)andexclusive(sovereign).Transientapplicationsmayuseoccasionallyeveryday,butalwaysasasecondaryactivity,withasudden.Thecontrastissovereignapplications,exclusivecontinueduseofapplicationtodealwiththeuserforseveralhoursaday.Manyapplicationshaveanaturalmonopolyortransientproperties.Forexample,awordprocessingsoftwarewritingisasovereignapplication,possibleapplicationsalsouseseveraltransient,suchasfilemanagement(fileopenandembedthisfunctionwilloftenclosethewindow),dictionaryorspellcheckingtools(manywordprocessingprogramisalsoembeddedinthesefunctions),andcolleaguescontactemailandchattool.Forsoftwaredevelopers,texteditor,debuggerorIDE(integrateddevelopmentenvironment)istheexclusive.Sovereignapplicationsoftenusemorefrequently.Youknow,agooduserinterfaceisnotvisible.Themeasureofagoodscaleusedfrequently,iswhentheuserinterfacehasobviouspause,itaffectstheuserprocess.Forexample,fromadirectorytoanotherdirectoryfileto2secondpause,!canacceptwithpleasure;butifthetwosecondsistheplaceinmyisfullofpassionforpaintingsoftwaretocreateanimage,ormtryingtodebugaverydifficulttodealwiththegenerationofcodecertainly,thismakesmefeelveryuncomfortable.Amazonisatransientapplication,eBay,GoogleandmostlargepublicWebapplicationsaretransientapplications.Sincethedateofbirth,theexpertshadpredictedthatthetraditionaldesktopapplicationsunderWebimpact.Overthepasttenyears,thesehavenotoccurred,why7BasedontheWebpageprogramfortransientapplicationsisenough,butitisfarfromenoughforasovereignapplication.ThestartingofmodernWebbrowsersandit'soriginalpoint(adocumentfromaremoteserver)hasnotmatter,betweenthemlikeaSwissArmyknifeandneolithichuntingtools,itisaworldofdifference.Avarietyofinteractivecomponents,scriptsandplug-ins,theseyearscouldnotsuppressthecrazydevelopment,almostforcedonceagaintocreateanewbrowsingexperience.toprehistorictimesVisitbrowsenIn1993,netscapefoundedbeforetheMarcAndreessen(founderofnetscape)arelobbyingTimBemers-Lee(founderofWeb,theW3Cleader)etal.,citedgoodintoapicturelabelisHTML.Afewyearsago,afewpioneersbegantotreatJavaScriptasaseriousprogramminglanguage.Butonthewhole,morepeoplestilluseitandthosewhomockwarningbox"monkeytricksandclicktowinawards"advertisingaClasstogether.ThebrowserwarsbroughtJavaScriptamisunderstood,sickchildren,Ajaxcanbeviewedashisrehabilitationcenter.Aslongastheproperguidance,andthentoframeitwithappropriate,JavaScriptwilllikelybecometheInternetmodelcitizen.ltcanreallyenhancethepracticabilityofWebapplication,andwithoutforcinguserstoinstalladditionalsoftware,orforcinguserstoabandonhisbelovedbrowser.Toobtainmaturetoolsarewidelyunderstoodcanhelpusachievethisgoal.Thebackofthebookdesignpatternisonesuchtoolmentioned.Thepromotionandpopularizationofanewtechnology,isnotonlythetechnicalmatters,butalsosocialbehavior.Oncethetechnologyismature,thepeoplealsoneedtounderstandhowtouseit.Thisstepisoftenbyusingittodoourveryfamiliarthingsstart.Forexample,earlybicyclecalled"Trojanwheel"or"pedalinghorse,onhisfeettreadthereactionforcetomoveforward.Asthistechnologyisgraduallyacceptedbythepublic,theninventorswouldinventanewwaytouse,addthepedal,brake,achainwheelandtire.Eachtimetheinventioncreation,madethebikeintheshadowofmorepalehorse,thatcompletelydisappeared.ThesameprocessalsooccursinthefieldofWebdevelopment.ThetechnologybehindtheAjaxhavetheabilitytoW

    注意事项

    本文(外文翻译-Ajax的应用.docx)为本站会员(李司机)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开