澶辨晥閾炬帴澶勭悊 |
XMLHttpRequest涓枃鍙傝€冩墜鍐?PDF 涓嬭澆
鏈珯鏁寸悊涓嬭澆錛?/strong>
閾炬帴錛?a target="_blank">https://pan.baidu.com/s/10owY0qnZbN8X6YjnuPzdQA
鎻愬彇鐮侊細7fpm
鐩稿叧鎴浘錛?/strong>
![]()
涓昏鍐呭錛?/strong>
xmlHttpReq.open("GET", "http://localhost/books.xml", false);
xmlHttpReq.send();
alert(xmlHttpReq.responseText);
var xmlHttpReq = new XMLHttpRequest();
xmlHttpReq.open("GET", "http://localhost/books.xml", false);
xmlHttpReq.send();
alert(xmlHttpReq.responseText);
Dim HttpReq As New MSXML2.XMLHTTP30
HttpReq.open "GET", "http://localhost/books.xml", False
HttpReq.send
MsgBox HttpReq.responseText
Copyright © 2005 xmlhttp.cn. All rights reserved.
紱佹浠諱綍褰㈠紡鐨勮漿杞斤紒錛侊紒錛?nbsp;
XMLHttpRequest鎴愭垚鎴愬憳鎴愬憳鍛樺憳
灞炲睘灞炴€у睘鎬ф€ф€?/div>
* 琛ㄨ〃琛ㄥ睘鎬ф€3C鏂囨。瀵硅薄璞¤薄璞℃墿灞?
鏂規(guī)硶
浜嬩歡
鏃?/div>
鍙傚弬鍙傝€冨弬鑰冭€冭€?/div>
XMLHTTPRequest
Copyright © 2005 xmlhttp.cn. All rights reserved.
紱佹浠諱綍褰㈠紡璞¤漿杞斤紒錛侊紒錛?nbsp;
XMLHTTP瀵硅薄鍙傝€?/div>
XMLHTTPRequest 瀵硅薄
XMLHTTPRequest 鎴愬憳
onreadystatechange
readyState
responseBody
responseStream
responseText
responseXML
status
statusText
abort
getAllResponseHeaders
getResponseHeader
open
send
setRequestHeader
onreadystatechange* 鎸囨寚褰搑eadyState灞炴€ф€у彉鍙樿薄浜嬩歡澶勭悊鐞嗙悊鐞?/div>
鍙啓
readyState 榪旇繑褰撳墠璇鋒眰璞$姸鎬侊紝鍙.
responseBody 灝嗚繑搴斾俊淇′俊鏂囦俊unsigned byte鏁扮粍褰㈠紡榪旇繑.
鍙
responseStream 淇do Stream瀵硅薄璞″艦寮忚繑榪斿搷搴斾俊淇$悊鍙
responseText 灝嗗搷搴斾俊淇′俊涓哄瓧瀛楀瓧榪旇繑.鍙
responseXML
灝嗗搷搴斾俊淇′俊寮忎俊涓篨ml Document瀵硅薄騫惰繑
榪旓紝鍙
status 榪旇繑褰撳墠璇鋒眰璞ttp鐘舵€佹€?鍙
statusText 榪旇繑褰撳墠璇鋒眰璞″搷搴旇鐘舵€侊紝鍙
abort 鍙栧彇褰撳墠璇鋒眰
getAllResponseHeaders 鑾峰彇鍝嶅簲璞$殑鐨刪ttp澶?/div>
getResponseHeader 浠庡搷搴斾俊淇′俊鑾峰彇鎸囨寚璞ttp澶?/div>
open
鍒涘緩寤轟釜鏂拌薄http璇鋒眰錛屽茍鎸囨寚琛ㄨ姹傝薄鏂規(guī)硶姹俇RL淇′互楠岄獙淇′俊(鐢ㄦ埛鍚?瀵?鎬?
send 鍙戦€佽姹傛眰http鏈嶅姟鍣ㄥ茍鎺ユ帴榪斿簲
setRequestHeader 鍗曠嫭鎸囨寚璇鋒眰璞℃眰涓猦ttp澶?/div>
onreadystatechange
|