有人可以查看标题吗?我添加了多个脚本文件,这会导致很多问题

时间:2012-02-26 19:39:24

标签: jquery html mobile scrollview datebox

我添加了标题,这导致所有html表单提交两次,复选框不起作用。添加jquery移动日期框和scrollview会出现问题。 任何帮助都会很棒。

<head> 
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title> 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <link rel="stylesheet" href="@Url.Content("~/Content/jqm-docs.css")"/>
    <link rel="stylesheet" type="text/css" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
    <link rel="stylesheet" type="text/css" href="http://dev.jtsage.com/cdn/datebox/latest/jquery.mobile.datebox.min.css" /> 
    <link rel="stylesheet" href="@Url.Content("~/Content/Site.css")" />
    <script src="@Url.Content("~/Scripts/json2.min.js")" type="text/javascript"></script>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script> 
    <script type="text/javascript">
        $(document).bind("mobileinit", function() {
            // As of Beta 2, jQuery Mobile's Ajax navigation does not work in all cases (e.g.,
            // when navigating from a mobile to a non-mobile page, or when clicking "back"
            // after a form post), hence disabling it.
            $.mobile.ajaxEnabled = false;
            $.mobile.pushStateEnabled = false;
        });
    </script>
    <link rel="stylesheet"  href="@Url.Content("~/Content/jquery.mobile.scrollview.css")" />
    <link rel="stylesheet" href="@Url.Content("~/Content/jqm-docs.css")"/>
    <script type="text/javascript" src="@Url.Content("~/Content/jquery.js")"></script>
    <script type="text/javascript" src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
    <script type="text/javascript" src="http://dev.jtsage.com/cdn/datebox/latest/jquery.mobile.datebox.min.js"></script>
    <script type="text/javascript" src="http://dev.jtsage.com/cdn/datebox/i8n/jquery.mobile.datebox.i8n.en.js"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/jquery.mobile.docs.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/jquery.easing.1.3.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/jquery.mobile.scrollview.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/scrollview.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <link rel="stylesheet" href="@Url.Content("~/Content/themes/hub/hub.css")" />
    <link rel="stylesheet"  href="@Url.Content("~/Content/jquery.mobile.css")" />  
</head>

1 个答案:

答案 0 :(得分:0)

该脚本导致了所有问题。下次我将捆绑所有内容并一次添加一个以避免所有这些。