[問題] 關於html跟js的問題
這是我在工具書看到的題目,我想了很久,一直想不出答案來@@"
想請版上的大大幫忙,謝謝各位
假如你從這個網站http://www.example.org/上在使用一個叫 /tmp/data.xml 檔案,在
Unix-based系統下,而/tmp/data.xml 內容如下
<html>
<head><title></title>
<script type="text/javascript">
<![CDATA[
function load() {
var xhr = new XMLHttpRequest();
xhr.open("GET", "file:///tmp/data.xml", false);
xhr.send();
alert(xhr.getResponseHeader("Content-Type"));
}
]]>
</script>
</head>
<body onload="javascript:load()">
</body></html>
那這個網頁是做什麼的? 它是HTML規範的嗎? 它容許Javascript嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.25.87.15
※ 編輯: ololkiss123 來自: 114.25.87.15 (07/29 12:51)
→
07/29 13:06, , 1F
07/29 13:06, 1F
請問是哪裡寫錯呢?!
※ 編輯: ololkiss123 來自: 114.25.87.15 (07/29 16:14)
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章