4.1 Web Scripting 網頁腳本語言

4.1 Web Scripting

A web browser provides an ECMAScript host environment for client-side computation including, for instance, objects that represent windows, menus, pop-ups, dialog boxes, text areas, anchors, frames, history, cookies, and input/output. Further, the host environment provides a means to attach scripting code to events such as change of focus, page and image loading, unloading, error and abort, selection, form submission, and mouse actions. Scripting code appears within the HTML and the displayed page is a combination of user interface elements and fixed and computed text and images. The scripting code is reactive to user interaction and there is no need for a main program
 
4.1網頁腳本語言
網頁瀏覽器提供了ECMAScript主機環境以進行客戶端運算,譬如,用來表示視窗,選單,彈出,對話盒,本文區域,瞄點,框架,歷史,cookies,以及輸入輸出的物件。更進一步來說,主機環境提供了一種方法,以進行腳本語言程式碼的附加,像是焦點的改變,網頁與圖像的載入、卸載、錯誤以及放棄,選擇清單與表單提交,和滑鼠動作等。腳本描述語言出現在HTML當中,顯示出來的頁面是由使用者介面元素以及固定和計算出的文字與圖像組合而成。這種腳本描述語言是依據使用者的互動進行反應,因此他並不需要一個主程式。
 
A web server provides a different host environment for server-side computation including objects representing requests, clients, and files; and mechanisms to lock and share data. By using browser-side and server-side scripting together, it is possible to distribute computation between the client and server while providing a customised user interface for a Web-based application.
Each Web browser and server that supports ECMAScript supplies its own host environment, completing the ECMAScript execution environment.
 
網頁伺服器為伺服器端計算提供了一個不同的主機環境,包含了用來表示請求、客戶、檔案的物件。以及鎖定與分享資料的機制。藉由瀏覽器端與伺服器端腳本語言的搭配,當為基於網頁的應用程式提供自訂義的使用介面時,將運算分散於伺服端與庫戶端將成為可能。
每個支援ECMAScript的瀏覽器和伺服器都有自己的主機環境,以及完成ECMAScript的執行環境。
 
 
 

  按個讚!~支持本站!~

FB推薦載入中