我正在尝试使用 jquery mobile 的简单多页功能,但它不适用于我的 ASP.Net MVC 3 test.cshtml 页面。以下是页面的来源。谁能帮我这个?
@{
ViewBag.Title = "TestPage For Multiple Page";
Layout = "";
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>@ViewBag.Title</title>
<meta name="viewport" content="width=device-width" />
<link href="@Url.Content("~/Content/jquery.mobile-1.1.0.min.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.6.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.mobile-1.1.0.min.js")" type="text/javascript"></script>
</head>
<body>
<div data-role="page" id="main" data-theme="a">
<div data-role="header">
</div>
<div data-role="content">
some content <a href="#linkdiv">Test</a>
</div>
<div data-role="footer">
</div>
</div>
<div data-role="page" data-theme="a" id="linkdiv">
<div data-role="header">
</div>
<div data-role="content">
Testing
</div>
<div data-role="footer">
</div>
</div>
</body>
</html>