0

这是我的页面正在添加的引用的屏幕截图。我正在使用 MVC 4 Razor。

编辑:

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.20/jquery-ui.min.js"></script>
<link href="/MaxVSM/css/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>


<script type="text/javascript">
    var ApplicationRoot = '/MaxVSM';
    if (!window.jQuery) {
        document.write('<script type="text/javascript" src="/MaxVSM/Scripts/jquery-1.7.1.js"><\/script>');
        document.write('<script type="text/javascript" src="/MaxVSM/Scripts/jquery-ui-1.8.20.min.js"><\/script>')
    } else {
        if (!window.jQuery.ui)
            document.write('<script type="text/javascript" src="/MaxVSM/Scripts/jquery-ui-1.8.20.min.js"><\/script>')
    }
</script>

<link href="/MaxVSM/css/normalize.css" rel="stylesheet"/>
<link href="/MaxVSM/css/foundation.css" rel="stylesheet"/>
<link href="/MaxVSM/css/Common.css" rel="stylesheet"/>

<script src="/MaxVSM/Scripts/jquery.unobtrusive-ajax.js"></script>
<script src="/MaxVSM/Scripts/jquery.validate.js"></script>
<script src="/MaxVSM/Scripts/jquery.validate.unobtrusive.js"></script>
<script src="/MaxVSM/Scripts/modernizr-2.5.3.js"></script>
<script src="/MaxVSM/Scripts/knockout-2.1.0.debug.js"></script>

<script src="/MaxVSM/Scripts/json2.js"></script>
<script src="/MaxVSM/Scripts/jquery.qtip-1.0.0-rc3.js"></script>
<script src="/MaxVSM/Js/Common.js"></script>
<script src="/MaxVSM/Js/CustomDateControl.js"></script>

if (!window.jQuery): 其实我是通过 Google APIs 给 jQuery 的参考。如果在页面上找不到它,它将引用 jQuery 的本地路径。

4

1 回答 1

3

您需要检查您的图书馆订单。我认为 JQuery 首先在这里会有所帮助:)

编辑,在之前添加:

<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/additional-methods.min.js"></script>
于 2013-06-19T07:31:33.663 回答