freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

網(wǎng)頁設(shè)計(jì)外文翻譯---使用xmlhttprequest對象-預(yù)覽頁

2025-06-20 18:52 上一頁面

下一頁面
 

【正文】 containing response headers from the HTTP request. Headers include ContentLength, Date, and URI. string getResponseHeader(string header): This method is a panion to getAllResponseHeaders() except it takes an argument representing the specific header value you want, returning this value as a string. In addition to these standard methods, the XMLHttpRequest object exposes the properties listed in Table 22. You’ll use these properties extensively when working with XMLHttpRequest. Table 22. Standard XMLHttpRequest Properties Property Description onreadystatechange The event handler that fires at every state change, typically a call to a JavaScript function. readyState The state of the request. The five possible values are 0 = uninitialized, 1 = loading, 2 = loaded, 3 = interactive, and 4 = plete. responseText The response from the server as a string. responseXML The response from the server as a string. The response from the server as XML. This object can be parsed and examined as a DOM object. status The HTTP status code from the server (that is, 200 for OK, 404 for Not Found, and so on). statusText The text version of the HTTP status code (that is, OK or Not Found, and so on). An Example Interaction At this point, you might be wondering what a typical Ajax interaction looks like. Figure 21 AjaxEnabled Web Application Web Container Client Server Database event Server source Figure 21. Standard Ajax interaction Unlike the standard request/response approach found in a standard Web client, an Ajax application does things a little bit differently. 1. A clientside event triggers an Ajax event. Any number of things can trigger this, from a simple onchange event to some specific user action. You might have code like this: input type=textd= name= onblur=validateEmail()。 others require work on the server. Many of these frameworks have just begun development or are in the early phases of release。需要重點(diǎn)說明的是,XMLHttpRequest 并不是一個(gè) W3C 標(biāo)準(zhǔn),不過許多功能已經(jīng)涵蓋在一個(gè)新提案中: DOM Level 3 加載和保存規(guī)約( DOM Level 3 Load and Save Specification)。第 1 章討論過,在這種情況下,如果要使用 Ajax 技術(shù),要么需要開發(fā)一個(gè)候選網(wǎng)站,要么你的應(yīng)用應(yīng)當(dāng)能妥善地降級。由于 XMLHttpRequest 不是一個(gè) W3C 標(biāo)準(zhǔn),所以可以采用多種方法使用 JavaScript 來創(chuàng)建 XMLHttpRequest 的實(shí)例。幸運(yùn)的是,在這里為了明確該如何創(chuàng)建 XMLHttpRequest 對象的實(shí)例,并不需要那么詳細(xì)地編寫代碼來區(qū)別瀏覽器類型。 如果 調(diào)用失?。ǚ祷?null), JavaScript 就會(huì)轉(zhuǎn)到 else 語句分支,確定瀏覽器是否把 XMLHttpRequest 實(shí)現(xiàn)為一個(gè)本地 JavaScript 對象。 方法和屬性 表 21 顯示了 XMLHttpRequest 對象的一些典型方法。 url參數(shù)可以是相對 URL 或絕對 URL。這是初始化一個(gè)請求的純腳本方法。默認(rèn)值為 true,表示請求本質(zhì)上是異步的。最后兩個(gè)參數(shù)不說自明,允許你指定一個(gè)特定的用戶名和密碼。傳入這個(gè)方法的內(nèi)容會(huì)作為請求體的一部分發(fā)送。 在所有這些方法中,最有可能用到的就是 open()和 send()。 string getResponseHeader(string header): 這個(gè)方法與getAllResponseHeaders()是對應(yīng)的,不過它有一個(gè)參數(shù)表示你希望得到的指定首部值,并且把這個(gè)值作為串返回。有 5 個(gè)可取值: 0 = 未初始化, 1 = 正在加載, 2 = 已加載, 3 = 交互中, 4 = 完成 responseText 服務(wù)器的響應(yīng),表示為一個(gè)串 responseXML 服務(wù)器 的響應(yīng),表示為 XML。 1. 一個(gè)客戶端事件觸發(fā)一個(gè) Ajax 事件。使用 open()方法建立調(diào)用,并設(shè)置URL以及所希望的 HTTP方法(通常是 GET或 POST)。 4. 服務(wù)器可以做你想做的事情,包括訪問數(shù)據(jù)庫,甚至訪問另一個(gè)系統(tǒng)。需要說明,你還需要設(shè)置另外一些首部,使瀏覽器不會(huì)在本地緩存結(jié)果。有一些純粹基于客戶,還有一些需要在服務(wù)器上工作。這個(gè)領(lǐng)域日新月異,所以應(yīng)當(dāng)適當(dāng)?shù)嘏渲媚愕?RSS 收集器,及時(shí)收集有關(guān) Ajax 的所有網(wǎng)站上的信息! 使用 Ajax 的 Web 應(yīng)用 Web 容器 事件 客戶 服務(wù)器 服務(wù)器資源 數(shù)據(jù)庫 小結(jié) 盡管 Ajax 風(fēng)格的技術(shù)已經(jīng)用了很多年,但直到最近 XMLHttpRequest 對象才得到現(xiàn)代瀏覽器的采納,而這也為開發(fā)豐富的 Web 應(yīng)用開啟了一個(gè)新的時(shí)代。適當(dāng)?shù)厥褂?JavaScript,再加上基本的 DOM 管理, Ajax 可以提供高度的交互性,而這在此前的 Web 上是做不到的。其內(nèi)容以 為基礎(chǔ),選取 Web 應(yīng)用程序的典型實(shí)例進(jìn)行講解。主要內(nèi)容包括 C的基本語法、面向?qū)ο缶幊獭?Windows 應(yīng)用程序設(shè)計(jì)、數(shù)據(jù)庫編程、網(wǎng)絡(luò)編程、 Wed 應(yīng)用程序及 Wed 服務(wù)、異常處理機(jī)制以及程序的部署和打包等 ? [9]楊德宏,李玲 客戶關(guān)系管理成功案例 北京:機(jī)械工業(yè)出版社, 書共例舉了 5 個(gè)行業(yè),如金融業(yè)、制造業(yè)、 IT 業(yè)、郵政及通 信業(yè)和零售業(yè)共 20 多個(gè)案例。
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1