jquery-1.7.1.min.js:无法加载资源:服务器以404状态(未找到)响应

时间:2019-04-22 09:53:29

标签: javascript jquery asp.net

我正在构建一个asp.net Web应用程序。

我正在使用以下代码致电jquery-1.7.1.min.js

<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>

我遇到以下错误:

Failed to load resource: the server responded with a status of 404 (Not Found) jquery-1.7.1.min.js

这是我的aspx网络表单的标题

<%@ Page Language="C#" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" EnableEventValidation="false" CodeBehind="***.aspx.cs" Inherits="***.***" MasterPageFile="~/Root2.Master" %>

页面中有一个脚本管理器

<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"></asp:ScriptManager>

如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

您使用的jquery网址没有“ jquery-1.7.1.min.js”文件。

使用以下网址: https://code.jquery.com/jquery-1.12.4.min.js