在.aspx页中添加什么以使jquery正常工作。
当我添加google cdn时它工作正常,但在添加捆绑包时不起作用。 可以请人帮忙从项目本身引用捆绑软件吗?
<%@ Page Title="Contact" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="WebForms.Contact" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
///I kknow I need to add bundles here..but not sure what to add.
<script type="text/javascript">
$(document).ready(
function () {
$('name').text('test');
debugger;
alert("ready");
}
);
$(function () {
$("#test").click(function () {
alert('clicked!');
$('#name').text('test');
return false;
});
});
</script>
<input type ="submit" ID="test" />
<div id="name" >nothing</div>
</asp:Content>