9
需要標識符在我的項目,我使用的原型JavaScript框架1.7.1SCRIPT1010:在IE10
當我在加載IE10在Windows 7上的網頁,我得到以下錯誤信息: SCRIPT1010:預期標識線1個字符9指向<!DOCTYPE html>
在低於我測試HTML網頁:
<!DOCTYPE html>
<html>
<head>
<title>My webpage title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js'></script>
</head>
<body>
just testing
</body>
</html>
HTTP請求報頭
GET /test.html HTTP/1.1[CRLF]
Host: www.mydomain.com[CRLF]
Connection: close[CRLF]
User-Agent: Web-sniffer/1.0.44 (+http://web-sniffer.net/)[CRLF]
Accept-Encoding: gzip[CRLF]
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8[CRLF]
Accept-Language: en-GB,en-US;q=0.8,en;q=0.6[CRLF]
Accept-Charset: ISO-8859-1,UTF-8;q=0.7,*;q=0.7[CRLF]
Cache-Control: no-cache[CRLF]
Referer: http://web-sniffer.net/[CRLF]
HTTP Respo nse頭文件
Name Value Delim
Status: HTTP/1.1 200 OK
Server: webhost
Date: Tue, 26 Mar 2013 10:07:56 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding,User-Agent
Last-Modified: Tue, 26 Mar 2013 10:07:29 GMT
Cache-Control: max-age=3600, public, must-revalidate, proxy-revalidate
Expires: Tue, 26 Mar 2013 11:07:56 GMT
Pragma: public
CF-RAY: 553096521a6047f
Content-Encoding: gzip
有沒有人知道是什麼原因導致這個錯誤,或者這是原型1.7.1中的錯誤?
你有你的JavaScript文件的頂部的HTML文檔類型???或者錯誤指向你的html文檔? – Bergi 2013-03-26 08:43:36
感謝您的標記。您能否向我們展示您的服務器爲此文檔發送的標題(或鏈接到您的服務器)? – Bergi 2013-03-26 09:48:40
奇怪。如果你刪除'