這不是加載頁面錯誤在哪裏? ,這是使用jQuery 1.9.1版本, http://localhost/ReportsSec/MapNavigation.aspx
包含谷歌地圖API 下面給出的錯誤頁面:jQuery加載方法不起作用
刷新頁面以查看已打開F12工具之前可能已發生的消息。 SCRIPT5009:使用 'google' 未定義 Default.aspx的,線116字符1 SCRIPT257:無法完成由於錯誤80020101. 的jquery-1.9.1.js操作,線路602字符4
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script>
$(document).ready(function() {
$("button").click(function() {
$("#div1").load("http://localhost/ReportsSec/MapNavigation.aspx");
});
});
</script>
</head>
<body>
<div id="div1" style="width:450px;height:450px"></div>
<button>Get External Content</button>
</body>
</html>
您使用的是什麼瀏覽器:Cross-domain requests with JQuery
然後,你可以這樣做?使用瀏覽器開發人員工具查看正在發生的事情。例如在控制檯中,您可以看到possbile Javascript錯誤。 – Esailija 2013-03-21 16:49:28
即9,請注意我試圖加載.aspx頁面,沒有錯誤在控制檯 – user2153650 2013-03-21 16:51:06
做任何其他方法的工作? – btevfik 2013-03-21 16:51:29