所以我選擇使用jQuery 1.4--而且我注意到了一些問題。這不是一個真正的項目,所以在這裏的代碼應該與一粒鹽。我寫了它來重現錯誤。jQuery 1.4 - 帶有AJAX的UI Tabstrip
本質上,請嘗試遵循jQuery UI Tabstrip AJAX加載示例 - 您將會遇到尷尬的結果。例如,標籤鏈接爲...
UI-tabs- [對象%20Object]
- 任何想法,這是什麼,以及如何解決它?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
<link href="css/ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function() {
$("#tabstrip").tabs();
});
</script>
</head>
<body>
<div id="tabstrip">
<ul>
<li><a href="http://www.google.com">Google</a></li>
<li><a href="http://www.microsoft.com">Microsoft</a></li>
<li><a href="http://www.java.com">Java</a></li>
<li><a href="http://www.asp.net/mvc">ASP.NET MVC</a></li>
<li><a href="http://www.getfirefox">Mozilla FireFox</a></li>
</ul>
</div>
</body>
</html>