に動作していない私は私のMasterPage.masterでマスターページは、Visual Studioで
<head runat="server">
<meta charset="utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script type="text/javascript" src="<%# ResolveUrl("~/") %>script.js" ></script>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<div class="handle">Click me</div>
</body>
をこのコードを持っている私は私のscript.jsでこのコードを持って、私はクリックすると
$('.handle').on('click', function() {
alert('hello world');
});
を提出私が持っているはずの警告メッセージはありません。
私はこれは私があなたのコードを試してみました、私には罰金であるように思わVisual Studioで
私はMasterPage.masterにを持っていますか?または "script.js"ファイルを使用する他の方法はありますか? –