Java 畢設(shè)論文 英文翻譯

上傳人:laiq****ong 文檔編號:110427397 上傳時間:2022-06-18 格式:DOC 頁數(shù):9 大?。?5.78KB
收藏 版權(quán)申訴 舉報 下載
Java 畢設(shè)論文 英文翻譯_第1頁
第1頁 / 共9頁
Java 畢設(shè)論文 英文翻譯_第2頁
第2頁 / 共9頁
Java 畢設(shè)論文 英文翻譯_第3頁
第3頁 / 共9頁

下載文檔到電腦,查找使用更方便

10 積分

下載資源

還剩頁未讀,繼續(xù)閱讀

資源描述:

《Java 畢設(shè)論文 英文翻譯》由會員分享,可在線閱讀,更多相關(guān)《Java 畢設(shè)論文 英文翻譯(9頁珍藏版)》請在裝配圖網(wǎng)上搜索。

1、JavaandtheInternetIfJavais,infact,yetanothercomputerprogramminglanguage,youmayquestionwhyitissoimportantandwhyitisbeingpromotedasarevolutionarystepincomputerprogramming.Theanswerisntimmediatelyobviousifyourecomingfromatraditionalprogrammingperspective.AlthoughJavaisveryusefulforsolvingtraditionalsta

2、ndaloneprogrammingproblems,itisalsoimportantbecauseitwillsolveprogrammingproblemsontheWorldWideWeb.WhatistheWeb?TheWebcanseemabitofamysteryatfirst,withallthistalkof“surfing,”“presence,”and“homepages.”Itshelpfultostepbackandseewhatitreallyis,buttodothisyoumustunderstandclient/serversystems,anotherasp

3、ectofcomputingthatsfullofconfusingissues.Client/ServercomputingTheprimaryideaofaclient/serversystemisthatyouhaveacentralrepositoryofinformationsomekindofdata,ofteninadatabasethatyouwanttodistributeondemandtosomesetofpeopleormachines.Akeytotheclient/serverconceptisthattherepositoryofinformationiscent

4、rallylocatedsothatitanbechangedandsothatthosechangeswillpropagateouttotheinformationconsumers.Takentogether,theinformationrepository,thesoftwarethatdistributestheinformation,andthemachine(s)wheretheinformationandsoftwareresideiscalledtheserver.Thesoftwarethatresidesontheremotemachine,communicateswit

5、htheserver,fetchestheinformation,processesit,andthendisplaysitontheremotemachineiscalledtheclient.Thebasicconceptofclient/servercomputing,then,isnotsocomplicated.Theproblemsarisebecauseyouhaveasingleservertryingtoservemanyclientsatonce.Generally,adatabasemanagementsystemisinvolved,sothedesigner“bala

6、nces”thelayoutofdataintotablesforoptimaluse.Inaddition,systemsoftenallowaclienttoinsertnewinformationintoaserver.Thismeansyoumustensurethatoneclientsnewdatadoesntwalkoveranotherclientsnewdata,orthatdataisntlostintheprocessofaddingittothedatabase(thisiscalledtransactionprocessing).Asclientsoftwarecha

7、nges,itmustbebuilt,debugged,andinstalledontheclientmachines,whichturnsouttobemorecomplicatedandexpensivethanyoumightthink.Itsespeciallyproblematictosupportmultipletypesofcomputersandoperatingsystems.Finally,therestheall-importantperformanceissue:Youmighthavehundredsofclientsmakingrequestsofyourserve

8、ratanyonetime,soanysmalldelayiscrucial.Tominimizelatency,programmersworkhardtooffloadprocessingtasks,oftentotheclientmachine,butsometimestoothermachinesattheserversite,usingso-calledmiddleware.(Middlewareisalsousedtoimprovemaintainability.)Thesimpleideaofdistributinginformationhassomanylayersofcompl

9、exitythatthewholeproblemcanseemhopelesslyenigmatic.Andyetitscrucial:Client/servercomputingaccountsforroughlyhalfofallprogrammingactivities.Itsresponsibleforeverythingfromtakingordersandcredit-cardtransactionstothedistributionofanykindofdatastockmarket,scientific,government,younameit.Whatwevecomeupwi

10、thinthepastisindividualsolutionstoindividualproblems,inventinganewsolutioneachtime.Thesewerehardtocreateandhardtouse,andtheuserhadtolearnanewinterfaceforeachone.Theentireclient/serverproblemneedstobesolvedinabigway.The Web asagiant serverTheWebisactuallyonegiantclient/serversystem.Itsabitworsethanth

11、at,sinceyouhavealltheserversandclientscoexistingonasinglenetworkatonce.Youdontneedtoknowthat,becauseallyoucareaboutisconnectingtoandinteractingwithoneserveratatime(eventhoughyoumightbehoppingaroundtheworldinyoursearchforthecorrectserver).Initiallyitwasasimpleone-wayprocess.Youmadearequestofaserveran

12、dithandedyouafile,whichyourmachinesbrowsersoftware(i.e.,theclient)wouldinterpretbyformattingontoyourlocalmachine.Butinshortorderpeoplebeganwantingtodomorethanjustdeliverpagesfromaserver.Theywantedfullclient/servercapabilitysothattheclientcouldfeedinformationbacktotheserver,forexample,tododatabaseloo

13、k upsontheserver,toaddnewinformationtotheserver,ortoplaceanorder(whichrequiredmoresecuritythantheoriginalsystemsoffered).ThesearethechangeswevebeenseeinginthedevelopmentoftheWeb.TheWebbrowserwasabigstepforward:theconceptthatonepieceof informationcouldbedisplayedonanytypeofcomputerwithoutchange.Howev

14、er,browserswerestillratherprimitiveandrapidlyboggeddownbythedemandsplacedonthem.Theywerentparticularlyinteractive,andtendedtoclogupboththeserverandtheInternetbecauseanytimeyouneededtodosomethingthatrequiredprogrammingyouhadtosendinformationbacktotheservertobeprocessed.Itcouldtakemanysecondsorminutes

15、tofindoutyouhadmisspelledsomethinginyourrequest.Sincethebrowserwasjustavieweritcouldntperformeventhesimplestcomputingtasks.(Ontheother hand,itwassafe,becauseitcouldntexecuteanyprogramsonyourlocalmachinethatmightcontainbugsorviruses.)Tosolvethisproblem,differentapproacheshavebeentaken.Tobeginwith,gra

16、phicsstandardshavebeenenhancedtoallowbetteranimationandvideowithinbrowsers.Theremainderoftheproblemcanbesolvedonlybyincorporatingtheabilitytorunprogramsontheclientend,underthebrowser.Thisiscalledclient-sideprogramming.Client-sideprogrammingTheWebsinitialserver-browserdesignprovidedforinteractivecont

17、ent,buttheinteractivitywascompletelyprovidedbytheserver.Theserverproducedstaticpagesfortheclientbrowser,whichwouldsimplyinterpretanddisplaythem.Basic HyperTextMarkupLanguage(HTML)containssimplemechanismsfordatagathering:text-entryboxes,checkboxes,radioboxes,listsanddrop-downlists,aswellasabuttonthat

18、canonlybeprogrammedtoresetthedata ontheformor“submit”thedataontheformbacktotheserver.ThissubmissionpassesthroughtheCommonGatewayInterface(CGI)providedonallWebservers.ThetextwithinthesubmissiontellsCGIwhattodowithit.Themostcommonactionistorunaprogramlocatedontheserverinadirectorythatstypicallycalled“

19、cgi-bin.”(IfyouwatchtheaddresswindowatthetopofyourbrowserwhenyoupushabuttononaWebpage,youcansometimessee“cgi-bin”withinallthegobbledygookthere.)Theseprogramscanbewritteninmostlanguages.Perlhasbeenacommonchoicebecauseitisdesignedfortextmanipulationandisinterpreted,soitcanbeinstalledonanyserverregardl

20、essofprocessororoperatingsystem.However,Python(myfavoriteseewww.Python.org)hasbeenmakinginroadsbecauseofitsgreaterpowerandsimplicity.ManypowerfulWebsitestodayarebuiltstrictlyonCGI,andyoucaninfactdonearlyanythingwithCGI.However,WebsitesbuiltonCGIprogramscanrapidlybecomeoverlycomplicatedtomaintain,and

21、thereisalsotheproblemofresponsetime.TheresponseofaCGIprogramdependsonhowmuchdatamustbesent,aswellastheloadonboththeserverandtheInternet.(Ontopofthis,startingaCGIprogramtendstobeslow.)TheinitialdesignersoftheWebdidnotforeseehowrapidlythisbandwidthwouldbeexhaustedforthekindsofapplicationspeopledevelop

22、ed.Forexample,anysortofdynamicgraphingisnearlyimpossibletoperformwithconsistencybecauseaGraphicsInterchangeFormat(GIF)filemustbecreatedandmovedfromtheservertotheclientforeachversionofthegraph.Andyouvenodoubthaddirectexperiencewithsomethingassimpleasvalidatingthedataonaninputform.Youpressthesubmitbut

23、tononapage;thedataisshippedbacktotheserver;theserverstartsaCGIprogramthatdiscoversanerror,formatsanHTML pageinformingyouoftheerror,andthensendsthepagebacktoyou;youmustthenbackupapageandtryagain.Notonlyisthisslow,itsinelegant.Thesolutionisclient-sideprogramming.MostmachinesthatrunWebbrowsersarepowerf

24、ulenginescapableofdoingvastwork,andwiththeoriginalstaticHTMLapproachtheyaresittingthere,justidlywaitingfortheservertodishupthenextpage.Client-sideprogrammingmeansthattheWebbrowserisharnessedtodowhateverworkitcan,andtheresultfortheuserisamuchspeedierandmoreinteractiveexperienceatyourWebsite.Theproble

25、mwithdiscussionsofclient-sideprogrammingisthattheyarentverydifferentfromdiscussionsofprogrammingingeneral.Theparametersarealmostthesame,buttheplatformisdifferent;aWebbrowserislikealimitedoperatingsystem.Intheend,youmuststillprogram,andthisaccountsforthedizzyingarrayofproblemsandsolutionsproducedbycl

26、ient-sideprogramming.Therestofthissectionprovidesanoverviewoftheissuesandapproachesinclient-sideprogramming.Plug-insOneofthemostsignificantstepsforwardinclient-sideprogrammingisthedevelopmentoftheplug-in.Thisisawayforaprogrammertoaddnewfunctionalitytothebrowserbydownloadingapieceofcodethatplugsitsel

27、fintotheappropriatespotinthebrowser.Ittellsthebrowser“fromnowonyoucanperformthisnewactivity.”(Youneedtodownloadtheplug-inonlyonce.)Somefastandpowerfulbehaviorisaddedtobrowsersviaplug-ins,butwritingaplug-inisnotatrivialtask,andisntsomethingyoudwanttodoaspartoftheprocessofbuildingaparticularsite.Theva

28、lueoftheplug-inforclient-sideprogrammingisthatitallowsanexpertprogrammertodevelopanewlanguageandaddthatlanguagetoabrowserwithoutthepermissionofthebrowsermanufacturer.Thus,plug-insprovidea“backdoor”thatallowsthecreationofnewclient-sideprogramminglanguages(althoughnotalllanguagesareimplementedasplug-i

29、ns).ScriptinglanguagesPlug-insresultedinanexplosionofscriptinglanguages.Withascriptinglanguage,youembedthesourcecodeforyourclient-sideprogramdirectlyintotheHTMLpage,andtheplug-inthatinterpretsthatlanguageisautomaticallyactivatedwhiletheHTMLpageisbeingdisplayed.Scriptinglanguagestendtobereasonablyeas

30、ytounderstandand,becausetheyaresimplytextthatispartofanHTMLpage,theyloadveryquicklyaspartofthesingleserverhitrequiredtoprocurethatpage.Thetrade-offisthatyourcode isexposedforeveryonetosee(andsteal).Generally,however,youarentdoingamazinglysophisticatedthingswithscriptinglanguages,sothisisnottoomuchof

31、ahardship.ThispointsoutthatthescriptinglanguagesusedinsideWebbrowsersarereallyintendedtosolvespecifictypesofproblems,primarilythecreationofricherandmoreinteractivegraphicaluserinterfaces(GUIs).However,ascriptinglanguagemightsolve80percentoftheproblemsencounteredinclient-sideprogramming.Yourproblemsm

32、ightverywellfitcompletelywithinthat80percent,andsincescriptinglanguagescanalloweasierandfasterdevelopment,youshouldprobablyconsiderascriptinglanguagebeforelookingatamoreinvolvedsolutionsuchasJavaorActiveXprogramming.ThemostcommonlydiscussedbrowserscriptinglanguagesareJavaScript(whichhasnothingtodowi

33、thJava;itsnamedthatwayjusttograbsomeof Javasmarketingmomentum),VBScript(whichlookslikeVisualBASIC),andTcl/Tk,whichcomesfromthepopularcross-platformGUI-buildinglanguage.Thereareothersoutthere,andnodoubtmoreindevelopment.JavaScriptisprobablythemostcommonlysupported.ItcomesbuiltintobothNetscapeNavigato

34、randtheMicrosoftInternetExplorer(IE).Unfortunately,theflavorofJavaScriptonthetwobrowserscanvarywidely(theMozillabrowser,freelydownloadablefromwww.Mozilla.org,supportstheECMAScriptstandard,whichmayonedaybecomeuniversallysupported).Inaddition,thereareprobablymoreJavaScriptbooksavailablethantherearefor

35、theotherbrowserlanguages,andsometoolsautomaticallycreatepagesusingJavaScript.However,ifyourealreadyfluentinVisualBASICorTcl/Tk,youllbemoreproductiveusingthosescriptinglanguagesratherthanlearning anewone.(YoullhaveyourhandsfulldealingwiththeWebissuesalready.)java和因特網(wǎng)既然Java不過另一種類型的程序設(shè)計語言,大家可能會奇怪它為什么值得

36、如此重視,為什么還有這么多的人認為它是計算機程序設(shè)計的一個里程碑呢?如果您來自一個傳統(tǒng)的程序設(shè)計背景,那么答案在剛開始的時候并不是很明顯。java除了可解決傳統(tǒng)的程序設(shè)計問題以外,還能解決WorldWideWeb(萬維網(wǎng))上的編程問題。1.11.1什么是web?web這個詞剛開始顯得有些泛泛,似乎“沖浪”、“網(wǎng)上存在”以及“主頁”等等都和它拉上了一些關(guān)系。甚至還有一種“Internet綜合癥”的說法,對許多人狂熱的上網(wǎng)行為提出了質(zhì)疑。我們在這里有必要作一些深入的探討,但在這之前,必須理解客戶機服務器系統(tǒng)的概念,這是充斥著許多令人迷惑的問題的又一個計算領(lǐng)域。1.客戶機服務器計算客戶機服務器系統(tǒng)的

37、基本思想是我們能在一個統(tǒng)一的地方集中存放信息資源。一般將數(shù)據(jù)集中保存在某個數(shù)據(jù)庫中,根據(jù)其他人或者機器的請求將信息投遞給對方??蛻魴C服務器概述的一個關(guān)鍵在于信息是“集中存放”的。所以我們能方便地更改信息,然后將修改過的信息發(fā)放給信息的消費者。將各種元素集中到一起,信息倉庫、用于投遞信息的軟件以及信息及軟件所在的那臺機器,它們聯(lián)合起來便叫作“服務器”(server)。而對那些駐留在程機器上的軟件,它們需要與服務器通信,取回信息,進行適當?shù)奶幚?,然后在遠程機器上顯示出來,這些就叫作“客戶”(client)。這樣看來,客戶機服務器的基本概念并不復雜。這里要注意的一個主要問題是單個服務器需要同時向多個

38、客戶提供服務。在這一機制中,通常少不了一套數(shù)據(jù)庫管理系統(tǒng),使設(shè)計人員能將數(shù)據(jù)布局封裝到表格中,以獲得最優(yōu)的使用。除此以外,系統(tǒng)經(jīng)常允許客戶將新信息插入一個服務器。這意味著必須確??蛻舻男聰?shù)據(jù)不會與其他客戶的新數(shù)據(jù)沖突,或者說需要保證那些數(shù)據(jù)在加入數(shù)據(jù)庫的時候不會丟失(用數(shù)據(jù)庫的術(shù)語來說,這叫作“事務處理”)。客戶軟件發(fā)生了改變之后,它們必須在客戶機器上構(gòu)建、調(diào)試以及安裝。所有這些會使問題變得比我們一般想象的復雜得多。另外,對多種類型的計算機和操作系統(tǒng)的支持也是一個大問題。最后,性能的問題顯得尤為重要:可能會有數(shù)百個客戶同時向服務器發(fā)出請求。所以任何微小的延誤都是不能忽視的。為盡可能緩解潛伏的問

39、題,程序員需要謹慎地分散任務的處理負擔。一般可以考慮讓客戶機負擔部分處理任務,但有時亦可分派給服務器所在地的其他機器,那些機器亦叫作“中間件”(中間件也用于改進對系統(tǒng)的維護)。所以在具體實現(xiàn)的時候,其他人發(fā)布信息這樣一個簡單的概念可能變得異常復雜。有時甚至會使人產(chǎn)生完全無從著手的感覺。客戶機服務器的概念在這時就可以大顯身手了。事實上,大約有一半的程序設(shè)計活動都可以采用客戶機服務器的結(jié)構(gòu)。這種系統(tǒng)可負責從處理訂單及信用卡交易,一直到發(fā)布各類數(shù)據(jù)的方方面面的任務股票市場、科學研究、政府運作等等。在過去,我們一般為單獨的問題采取單獨的解決方案;每次都要設(shè)計一套新方案。這些方案無論創(chuàng)建還是使用都比較困

40、難,用戶每次都要學習和適應新界面??蛻魴C服務器問題需要從根本上加以變革!2、web是一個巨大的服務器web實際就是一套規(guī)模巨大的客戶機服務器系統(tǒng)。但它的情況要復雜一些,因為所有服務器和客戶都同時存在于單個網(wǎng)絡(luò)上面。但我們沒必要了解更進一步的細節(jié),因為唯一要關(guān)心的就是一次建立同一個服務器的連接,并同它打交道(即使可能要在全世界的范圍內(nèi)搜索正確的服務器)。最開始的時候,這是一個簡單的單向操作過程。我們向一個服務器發(fā)出請求它向我們回傳一個文件,由于本機的瀏覽器軟件(亦即“客戶”或“客戶程序”)負責解釋和格式化,并在我們面前的屏幕上正確地顯示出來。但人們不久就不滿足于只從一個服務器傳遞網(wǎng)頁。他們希望獲

41、得完全的客戶機服務器能力,使客戶(程序)也能反饋一些信息到服務器。比如希望對服務器上的數(shù)據(jù)庫進行檢索,向服務器添加新信息,或者下一份訂單等等(這也提供了比以前的系統(tǒng)更高的安全要求)。在web的發(fā)展過程中,我們可以很清晰地看出這些令人心喜的變化。 web瀏覽器的發(fā)展終于邁出了重要的一步:某個信息可在任何類型的計算機上顯示出來,毋需任何改動。然而,瀏覽器仍然顯得很原始,在用戶迅速增多的要求面前顯得有些力不從心。它們的交互能力不夠強,而且對服務器和因特網(wǎng)都造成了一定程度的干擾。這是由于每次采取一些要求編程的操作時,必須將信息反饋回服務器,在服務器那一端進行處理。所以完全可能需要等待數(shù)秒乃至數(shù)分鐘的時

42、間才會發(fā)現(xiàn)自己剛才拼錯了一個單詞。由于瀏覽器只是一個純粹的查看程序,所以連最簡單的計算任務都不能進行(當然在另一方面,它也顯得非常安全,因為不能在本機上面執(zhí)行任何程序,避開了程序錯誤或者病毒的騷擾)。為解決這個問題,人們采取了許多不同的方法。最開始的時候,人們對圖形標準進行了改進,使瀏覽器能顯示更好的動畫和視頻。為解決剩下的問題,唯一的辦法就是在客戶端(瀏覽器)內(nèi)運行程序。這就叫作“客戶端編程”,它是對傳統(tǒng)的“服務器端編程”的一個非常重要的拓展。1.11.2客戶端編程(注釋)web最初采用的“服務器瀏覽器”方案可提供交互式內(nèi)容,但這種交互能力完全由服務器提供,為服務器和因特網(wǎng)帶來了不小的負擔。

43、服務器一般為客戶瀏覽器產(chǎn)生靜態(tài)網(wǎng)頁,由后者簡單地解釋并顯示出來?;綡TML語言提供了簡單的數(shù)據(jù)收集機制:文字輸入框、復選框、單選鈕、列表以及下拉列表等,另外還有一個按鈕,只能由程序規(guī)定重新設(shè)置表單中的數(shù)據(jù),以便回傳給服務器。用戶提交的信息通過所有web服務器均能支持的“通用網(wǎng)關(guān)接口”(CGI)回傳到服務器。包含在提交數(shù)據(jù)中的文字指示該如何操作。最常見的行動是運行位于服務器的一個程序。那個程序一般保存在一個名為“cgi-bin”的目錄中(按下web頁內(nèi)的一個按鈕時,請注意一下瀏覽器頂部的地址窗,經(jīng)常都能發(fā)現(xiàn)“cgi-bin”的字樣)。大多數(shù)語言都可用來編制這些程序,但其中最常見的是Perl。這

44、是由于Perl是專為文字的處理及解釋而設(shè)計的,所以能在任何服務器上安裝和使用,無論采用的處理器或操作系統(tǒng)是什么。:本節(jié)內(nèi)容改編自某位作者的一篇文章。那篇文章最早出現(xiàn)在位于的Mainspring上。本節(jié)的采用已征得了對方的同意。今天的許多Web站點都嚴格地建立在CGI的基礎(chǔ)上,事實上幾乎所有事情都可用CGI做到。唯一的問題就是響應時間。CGI程序的響應取決于需要傳送多少數(shù)據(jù),以及服務器和因特網(wǎng)兩方面的負擔有多重(而且CGI程序的啟動比較慢)。Web的早期設(shè)計者并未預料到當初綽綽有余的帶寬很快就變得不夠用,這正是大量應用充斥網(wǎng)上造成的結(jié)果。例如此時任何形式的動態(tài)圖形顯示都幾乎不能連貫地顯示,因為此

45、時必須創(chuàng)建一個GIF文件,再將圖形的每種變化從服務器傳遞給客戶。而且大家應該對輸入表單上的數(shù)據(jù)校驗有著深刻的體會。原來的方法是我們按下網(wǎng)頁上的提交按鈕(Submit);數(shù)據(jù)回傳給服務器;服務器啟動一個CGI程序,檢查用戶輸入是否有錯;格式化一個HTML頁,通知可能遇到的錯誤,并將這個頁回傳給我們;隨后必須回到原先那個表單頁,再輸入一遍。這種方法不僅速度非常慢,也顯得非常繁瑣。解決的辦法就是客戶端的程序設(shè)計。運行web瀏覽器的大多數(shù)機器都擁有足夠強的能力,可進行其他大量工作。與此同時,原始的靜態(tài)HTML方法仍然可以采用,它會一直等到服務器送回下一個頁??蛻舳司幊桃馕吨鴚eb瀏覽器可獲得更充分的利

46、用,并可有效改善web服務器的交互(互動)能力。對客戶端編程的討論與常規(guī)編程問題的討論并沒有太大的區(qū)別。采用的參數(shù)肯定是相同的,只是運行的平臺不同:web瀏覽器就象一個有限的操作系統(tǒng)。無論如何,我們?nèi)匀恍枰幊?,仍然會在客戶端編程中遇到大量問題,同時也有很多解決的方案。在本節(jié)剩下的部分里,我們將對這些問題進行一番概括,并介紹在客戶端編程中采取的對策。1. 插件朝客戶端編程邁進的時候,最重要的一個問題就是插件的設(shè)計。利用插件,程序員可以方便地為瀏覽器添加新功能,用戶只需下載一些代碼,把它們“插入”瀏覽器的適當位置即可。這些代碼的作用是告訴瀏覽器“從現(xiàn)在開始,你可以進行這些新活動了”(僅需下載這些

47、插入一次)。有些快速和功能強大的行為是通過插件添加到瀏覽器的。但插件的編寫并不是一件簡單的任務。在我們構(gòu)建一個特定的站點時,可能并不希望涉及這方面的工作。對客戶端程序設(shè)計來說,插件的價值在于它允許專業(yè)程序員設(shè)計出一種新的語言,并將那種語言添加到瀏覽器,同時不必經(jīng)過瀏覽器原創(chuàng)者的許可。由此可以看出,插件實際是瀏覽器的一個“后門”,允許創(chuàng)建新的客戶端程序設(shè)計語言(盡管并非所有語言都是作為插件實現(xiàn)的)。2. 腳本編制語言插件造成了腳本編制語言的爆炸性增長。通過這種腳本語言,可將用于自己客戶端程序的源碼直接插入HTML頁,而對那種語言進行解釋的插件會在HTML頁顯示的時候自動激活。腳本語言一般都傾向于

48、盡量簡化,易于理解。而且由于它們是從屬于HTML頁的一些簡單正文,所以只需向服務器發(fā)出對那個頁的一次請求,即可非??斓剌d入。缺點是我們的代碼全部暴露在人們面前。另一方面,由于通常不用腳本編制語言做過份復雜的事情,所以這個問題暫且可以放在一邊。腳本語言真正面向的是特定類型問題的解決,其中主要涉及如何創(chuàng)建更豐富、更具有互動能力的圖形用戶界面(GUI)。然而,腳本語言也許能解決客戶端編程中80的問題。你碰到的問題可能完全就在那80里面。而且由于腳本編制語言的宗旨是盡可能地簡化與快速,所以在考慮其他更復雜的方案之前(如Java及ActiveX),首先應想一下腳本語言是否可行。目前討論得最多的腳本編制語

49、言包括JavaScript(它與Java沒有任何關(guān)系;之所以叫那個名字,完全是一種市場策略)、VBScript(同VisualBasic很 相 識)以及Tcl/Tk(來源于流行的平臺GUI構(gòu)造語言)。當然還有其他許多語言,也有許多正在開發(fā)中。JavaScript也許是目常用的,它得到的支持也最全面。無論NetscapeNavigator,MicrosoftInternetExplorer,還是Opera,目前提供了對JavaScript的支持。除此以外,市面上講述JavaScript的書籍也要比講述其他語言的書多得多。有些工具還能利用JavaScript自動產(chǎn)生網(wǎng)頁。當然,如果你已經(jīng)有VisualBasic或者Tcl/Tk的深厚功底,當然用它們要簡單得多,起碼可以避免學習新語言的煩惱(解決web方面的問題就已經(jīng)夠讓人頭痛了)

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔
關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號:ICP2024067431-1 川公網(wǎng)安備51140202000466號


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請立即通知裝配圖網(wǎng),我們立即給予刪除!